File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2599,6 +2599,8 @@ def check_main():
2599
2599
def in_qtconsole ():
2600
2600
"""
2601
2601
check if we're inside an IPython qtconsole
2602
+
2603
+ DEPRECATED: This is no longer needed, or working, in IPython 3 and above.
2602
2604
"""
2603
2605
try :
2604
2606
ip = get_ipython ()
@@ -2616,6 +2618,9 @@ def in_qtconsole():
2616
2618
def in_ipnb ():
2617
2619
"""
2618
2620
check if we're inside an IPython Notebook
2621
+
2622
+ DEPRECATED: This is no longer used in pandas, and won't work in IPython 3
2623
+ and above.
2619
2624
"""
2620
2625
try :
2621
2626
ip = get_ipython ()
Original file line number Diff line number Diff line change @@ -470,14 +470,12 @@ def _repr_html_(self):
470
470
Return a html representation for a particular DataFrame.
471
471
Mainly for IPython notebook.
472
472
"""
473
- # ipnb in html repr mode allows scrolling
474
- # users strongly prefer to h-scroll a wide HTML table in the browser
475
- # then to get a summary view. GH3541, GH3573
476
- ipnbh = com .in_ipnb () and get_option ('display.notebook_repr_html' )
477
-
478
473
# qtconsole doesn't report it's line width, and also
479
474
# behaves badly when outputting an HTML table
480
475
# that doesn't fit the window, so disable it.
476
+ # XXX: In IPython 3.x and above, the Qt console will not attempt to
477
+ # display HTML, so this check can be removed when support for IPython 2.x
478
+ # is no longer needed.
481
479
if com .in_qtconsole ():
482
480
# 'HTML output is disabled in QtConsole'
483
481
return None
You can’t perform that action at this time.
0 commit comments