Skip to content

Commit 40b9b38

Browse files
author
y-p
committed
BUG: Always Ignore auto-detect terminal size for qtc/+ipnb
this is ignored anyway unless the user sets width/height to 0, but even then, size detection only works for proper terminals.
1 parent 1ab8586 commit 40b9b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@ def get_console_size():
16791679
display_width = get_option('display.width')
16801680
display_height = get_option('display.height')
16811681

1682-
if com.in_interactive_session():
1682+
if com.in_interactive_session() and not com.in_ipnb_frontend():
16831683
terminal_width, terminal_height = get_terminal_size()
16841684
else:
16851685
terminal_width, terminal_height = 80, 100

0 commit comments

Comments
 (0)