File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 2828import re
2929import six
3030import pandas as pd
31- import pandas .core .common as pdcom
3231from ..dataframe import SASDataFrame , concat
3332from ..notebook .zeppelin import show as z_show
3433from ..utils .compat import OrderedDict
@@ -88,8 +87,17 @@ def _repr_html_(self):
8887 HTML representation of CASResults object
8988
9089 '''
91- if pdcom .in_qtconsole ():
92- return None
90+ try :
91+ import IPython
92+ from pandas .io .formats import console
93+ from distutils .version import LooseVersion
94+ except ImportError :
95+ pass
96+ else :
97+ if LooseVersion (IPython .__version__ ) < LooseVersion ('3.0' ):
98+ if console .in_qtconsole ():
99+ # 'HTML output is disabled in QtConsole'
100+ return None
93101
94102 if not pd .get_option ('display.notebook.repr_html' ):
95103 return None
You can’t perform that action at this time.
0 commit comments