Skip to content

Commit 1797b47

Browse files
author
y-p
committed
CLN: repr_html raises NotImplementedError rather then ValueError in qtconsole GH5922
1 parent 14f4a78 commit 1797b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ 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 ValueError('Disable HTML output in QtConsole')
477+
raise NotImplementedError('HTML output is disabled in QtConsole')
478478

479479
if self._info_repr():
480480
buf = StringIO(u(""))

0 commit comments

Comments
 (0)