diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 8f1916141b572..61d59e8f93c83 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -474,7 +474,7 @@ def _repr_html_(self): # behaves badly when outputting an HTML table # that doesn't fit the window, so disable it. if com.in_qtconsole(): - raise ValueError('Disable HTML output in QtConsole') + raise NotImplementedError('HTML output is disabled in QtConsole') if self._info_repr(): buf = StringIO(u(""))