From 16b40d9579cc66013346034c3f9753d4b83525ef Mon Sep 17 00:00:00 2001 From: James Finucane Date: Sun, 25 Mar 2018 14:20:20 +0300 Subject: [PATCH] Update bokeh.py --- dsio/dashboard/bokeh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsio/dashboard/bokeh.py b/dsio/dashboard/bokeh.py index 3b72355..61cf0aa 100644 --- a/dsio/dashboard/bokeh.py +++ b/dsio/dashboard/bokeh.py @@ -71,7 +71,7 @@ def update(): io_loop = tornado.ioloop.IOLoop.current() - if io_loop._running: # Assume we're in a Jupyter notebook + if getattr(io_loop, '_running', False): # Assume we're in a Jupyter notebook output_notebook() show(app) else: # Otherwise start the bokeh server in a thread and open browser