mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-04 01:02:39 +02:00
[plotly] last minute change for ipython notebook
This commit is contained in:
parent
f4f6eb32c2
commit
e3617942d4
1 changed files with 36 additions and 39 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue