Skip to content

Commit 94b7b94

Browse files
author
y-p
committed
ENH: disable qtconsole HTML output again. add explanation why.
1 parent 9219433 commit 94b7b94

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/core/frame.py

+6
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,12 @@ def _repr_html_(self):
748748
# then to get a summary view. GH3541, GH3573
749749
ipnbh = com.in_ipnb() and get_option('display.notebook_repr_html')
750750

751+
# qtconsole doesn't report it's line width, and also
752+
# behaves badly when outputting an HTML table
753+
# that doesn't fit the window, so disable it.
754+
if com.in_qtconsole():
755+
raise ValueError('Disable HTML output in QtConsole')
756+
751757
if get_option("display.notebook_repr_html"):
752758
fits_vertical = self._repr_fits_vertical_()
753759
fits_horizontal = False

0 commit comments

Comments
 (0)