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