Skip to content

Commit 9c64409

Browse files
author
y-p
committed
CLN: ipython expects None from _repr_html_ to signal no html repr GH5922
1 parent fcfaa7d commit 9c64409

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,8 @@ def _repr_html_(self):
474474
# behaves badly when outputting an HTML table
475475
# that doesn't fit the window, so disable it.
476476
if com.in_qtconsole():
477-
raise NotImplementedError('HTML output is disabled in QtConsole')
477+
# 'HTML output is disabled in QtConsole'
478+
return None
478479

479480
if self._info_repr():
480481
buf = StringIO(u(""))

0 commit comments

Comments
 (0)