Skip to content

Commit

Permalink
fix: nbextension get loaded irrespective of jupyter-js-widgets/extens…
Browse files Browse the repository at this point in the history
…ion existence
  • Loading branch information
maartenbreddels committed Mar 21, 2019
1 parent 024419d commit 0edaecc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions voila/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ def get(self, path=None):
load_extensions = notebook_config.get('load_extensions', {})
if "jupyter-js-widgets/extension" in load_extensions:
load_extensions["jupyter-js-widgets/extension"] = False
nbextensions = [name for name, enabled in load_extensions.items() if enabled]
else:
nbextensions = []
nbextensions = [name for name, enabled in load_extensions.items() if enabled]

model = self.contents_manager.get(path=notebook_path)
if 'content' in model:
Expand Down

0 comments on commit 0edaecc

Please sign in to comment.