From 49f1bf7de2ad5e2c183829ee357907cbbc3b66fe Mon Sep 17 00:00:00 2001 From: y-p Date: Fri, 19 Apr 2013 14:00:30 +0300 Subject: [PATCH] ENH: let display.notebook_repr_html control HTML repr in qtconsole again. Where it belongs. https://github.com/pydata/pandas/issues/2275#issuecomment-10908413 It'll probably never happen that QTconsole will report it's width, let alone in characters (variable-width font and all). Best let the user decide. --- RELEASE.rst | 3 ++- pandas/core/frame.py | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/RELEASE.rst b/RELEASE.rst index 3c3af8a224248..f076f8b7a2d96 100644 --- a/RELEASE.rst +++ b/RELEASE.rst @@ -173,7 +173,8 @@ pandas 0.11.0 when invalid shapes are passed - Don't suppress TypeError in GroupBy.agg (GH3238_) - Methods return None when inplace=True (GH1893_) - + - HTML repr output for dataframs is once again controlled by the option + `display.notebook_repr_html`, and on by default. - ``HDFStore`` - added the method ``select_column`` to select a single column from a table as a Series. diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 217a0ecfbfd02..6fd627f42e055 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -726,8 +726,6 @@ def _repr_html_(self): Return a html representation for a particular DataFrame. Mainly for IPython notebook. """ - if com.in_qtconsole(): - raise ValueError('Disable HTML output in QtConsole') if get_option("display.notebook_repr_html"): fits_vertical = self._repr_fits_vertical_()