We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49f1bf7 commit 49141e9Copy full SHA for 49141e9
pandas/core/format.py
@@ -1696,7 +1696,9 @@ def get_console_size():
1696
if com.in_ipnb_frontend():
1697
# sane defaults for interactive non-shell terminal
1698
# match default for width,height in config_init
1699
- terminal_width, terminal_height = 100, 60
+ from pandas.core.config import get_default_val
1700
+ terminal_width = get_default_val('display.width')
1701
+ terminal_height = get_default_val('display.height')
1702
else:
1703
# pure terminal
1704
terminal_width, terminal_height = get_terminal_size()
0 commit comments