diff --git a/pandas/core/common.py b/pandas/core/common.py index 92d60ae8d8847..9fb79464d061b 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -2599,6 +2599,8 @@ def check_main(): def in_qtconsole(): """ check if we're inside an IPython qtconsole + + DEPRECATED: This is no longer needed, or working, in IPython 3 and above. """ try: ip = get_ipython() @@ -2616,6 +2618,9 @@ def in_qtconsole(): def in_ipnb(): """ check if we're inside an IPython Notebook + + DEPRECATED: This is no longer used in pandas, and won't work in IPython 3 + and above. """ try: ip = get_ipython() diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f702714fdc37e..b4e69e2056507 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -470,14 +470,12 @@ def _repr_html_(self): Return a html representation for a particular DataFrame. Mainly for IPython notebook. """ - # ipnb in html repr mode allows scrolling - # users strongly prefer to h-scroll a wide HTML table in the browser - # then to get a summary view. GH3541, GH3573 - ipnbh = com.in_ipnb() and get_option('display.notebook_repr_html') - # qtconsole doesn't report it's line width, and also # behaves badly when outputting an HTML table # that doesn't fit the window, so disable it. + # XXX: In IPython 3.x and above, the Qt console will not attempt to + # display HTML, so this check can be removed when support for IPython 2.x + # is no longer needed. if com.in_qtconsole(): # 'HTML output is disabled in QtConsole' return None