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 28
28
import re
29
29
import six
30
30
import pandas as pd
31
- import pandas .core .common as pdcom
32
31
from ..dataframe import SASDataFrame , concat
33
32
from ..notebook .zeppelin import show as z_show
34
33
from ..utils .compat import OrderedDict
@@ -88,8 +87,17 @@ def _repr_html_(self):
88
87
HTML representation of CASResults object
89
88
90
89
'''
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
93
101
94
102
if not pd .get_option ('display.notebook.repr_html' ):
95
103
return None
You can’t perform that action at this time.
0 commit comments