mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +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():
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue