Skip to content

Commit 49141e9

Browse files
author
y-p
committed
ENH: default dimensions for ip zmq frontends derive from disp.height/width defaults
1 parent 49f1bf7 commit 49141e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/format.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,9 @@ def get_console_size():
16961696
if com.in_ipnb_frontend():
16971697
# sane defaults for interactive non-shell terminal
16981698
# match default for width,height in config_init
1699-
terminal_width, terminal_height = 100, 60
1699+
from pandas.core.config import get_default_val
1700+
terminal_width = get_default_val('display.width')
1701+
terminal_height = get_default_val('display.height')
17001702
else:
17011703
# pure terminal
17021704
terminal_width, terminal_height = get_terminal_size()

0 commit comments

Comments
 (0)