[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(): def in_ipynb():
try: try:
cfg = get_ipython().config get_ipython()
if cfg['IPKernelApp']['parent_appname'] == 'ipython-notebook': return True
return True
else:
return False
except NameError: except NameError:
return False return False