Browse code

reload the holoviews javascript each time notebook_integration is called

Because after closing the notebook and then opening it, the javascript
is gone. Without this change, one could not load it again.

Bas Nijholt authored on 30/10/2018 13:34:34
Showing 1 changed files
... ...
@@ -23,6 +23,7 @@ def notebook_extension():
23 23
 
24 24
     # Load holoviews
25 25
     try:
26
+        _holoviews_enabled = False  # After closing a notebook the js is gone
26 27
         if not _holoviews_enabled:
27 28
             import holoviews
28 29
             holoviews.notebook_extension('bokeh', logo=False)