File tree 3 files changed +1
-55
lines changed
3 files changed +1
-55
lines changed Original file line number Diff line number Diff line change
1
+ """Pandas benchmarks."""
Original file line number Diff line number Diff line change 18
18
import itertools
19
19
import sys
20
20
import warnings
21
- from distutils .version import LooseVersion
22
21
from textwrap import dedent
23
22
24
23
import numpy as np
@@ -642,22 +641,6 @@ def _repr_html_(self):
642
641
643
642
Mainly for IPython notebook.
644
643
"""
645
- # qtconsole doesn't report its line width, and also
646
- # behaves badly when outputting an HTML table
647
- # that doesn't fit the window, so disable it.
648
- # XXX: In IPython 3.x and above, the Qt console will not attempt to
649
- # display HTML, so this check can be removed when support for
650
- # IPython 2.x is no longer needed.
651
- try :
652
- import IPython
653
- except ImportError :
654
- pass
655
- else :
656
- if LooseVersion (IPython .__version__ ) < LooseVersion ('3.0' ):
657
- if console .in_qtconsole ():
658
- # 'HTML output is disabled in QtConsole'
659
- return None
660
-
661
644
if self ._info_repr ():
662
645
buf = StringIO (u ("" ))
663
646
self .info (buf = buf )
Original file line number Diff line number Diff line change @@ -108,44 +108,6 @@ def check_main():
108
108
return check_main ()
109
109
110
110
111
- def in_qtconsole ():
112
- """
113
- check if we're inside an IPython qtconsole
114
-
115
- .. deprecated:: 0.14.1
116
- This is no longer needed, or working, in IPython 3 and above.
117
- """
118
- try :
119
- ip = get_ipython () # noqa
120
- front_end = (
121
- ip .config .get ('KernelApp' , {}).get ('parent_appname' , "" ) or
122
- ip .config .get ('IPKernelApp' , {}).get ('parent_appname' , "" ))
123
- if 'qtconsole' in front_end .lower ():
124
- return True
125
- except NameError :
126
- return False
127
- return False
128
-
129
-
130
- def in_ipnb ():
131
- """
132
- check if we're inside an IPython Notebook
133
-
134
- .. deprecated:: 0.14.1
135
- This is no longer needed, or working, in IPython 3 and above.
136
- """
137
- try :
138
- ip = get_ipython () # noqa
139
- front_end = (
140
- ip .config .get ('KernelApp' , {}).get ('parent_appname' , "" ) or
141
- ip .config .get ('IPKernelApp' , {}).get ('parent_appname' , "" ))
142
- if 'notebook' in front_end .lower ():
143
- return True
144
- except NameError :
145
- return False
146
- return False
147
-
148
-
149
111
def in_ipython_frontend ():
150
112
"""
151
113
check if we're inside an an IPython zmq frontend
You can’t perform that action at this time.
0 commit comments