Skip to content

Commit 54f15e6

Browse files
author
y-p
committed
Merge pull request pandas-dev#6045 from y-p/PR_ipython_repr_html
CLN: ipython expects None from _repr_html_ to signal no html repr GH5922
2 parents fcfaa7d + 9c64409 commit 54f15e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/frame.py

+2-1
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)