diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2d4fd2d792732..f4bdde332ac81 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -474,7 +474,8 @@ 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 NotImplementedError('HTML output is disabled in QtConsole') + # 'HTML output is disabled in QtConsole' + return None if self._info_repr(): buf = StringIO(u(""))