[plotly] last minute change for ipython notebook

This commit is contained in:
Max Zwiessele 2015-10-09 09:58:35 +01:00
parent f4f6eb32c2
commit e3617942d4

View file

@ -34,11 +34,8 @@ import itertools
def in_ipynb():
try:
cfg = get_ipython().config
if cfg['IPKernelApp']['parent_appname'] == 'ipython-notebook':
return True
else:
return False
get_ipython()
return True
except NameError:
return False