def get_console_size():
 display_width = get_option('display.width')
 display_height = get_option('display.height', silent=True)
 if com.in_interactive_session():
  if com.in_ipython_frontend():
   from pandas.core.config import get_default_val
   terminal_width = get_default_val('display.width')
   terminal_height = get_default_val('display.height')
  else:
   (terminal_width, terminal_height) = get_terminal_size()
 else:
  (terminal_width, terminal_height) = (None, None)
 return ((display_width or terminal_width), (display_height or terminal_height))

def get_console_size ( ) : display_width = get_option ( 'display.width' ) display_height = get_option ( 'display.height' , silent = True ) if com . in_interactive_session ( ) : if com . in_ipython_frontend ( ) : from pandas . core . config import get_default_val terminal_width = get_default_val ( 'display.width' ) terminal_height = get_default_val ( 'display.height' ) else : ( terminal_width , terminal_height ) = get_terminal_size ( ) else : ( terminal_width , terminal_height ) = ( None , None ) return ( ( display_width or terminal_width ) , ( display_height or terminal_height ) )
return console size as tuple = .