Skip to content

Commit d8d90cc

Browse files
committed
updated ipynb to be compatible with ipython 4.0
1 parent 9884e6b commit d8d90cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

highcharts/ipynb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
_ip = get_ipython()
1111
except:
1212
_ip = None
13-
if _ip and _ip.__module__.startswith('IPython'):
13+
if _ip and (_ip.__module__.startswith('IPython') or _ip.__module__.startswith('ipykernel')):
1414

1515
def _print_html(chart):
1616
'''Function to return the HTML code for the div container plus the javascript
@@ -45,4 +45,4 @@ def _setup_ipython_formatter(ip):
4545
for chart_type in [Highchart, Highmap, Highstock]:
4646
html_formatter.for_type(chart_type, _print_html)
4747

48-
_setup_ipython_formatter(_ip)
48+
_setup_ipython_formatter(_ip)

0 commit comments

Comments
 (0)