Skip to content

Commit

Permalink
Merge pull request #283 from SylvainCorlay/blacklist-voila
Browse files Browse the repository at this point in the history
Black list the voila nbextension
  • Loading branch information
SylvainCorlay committed Jul 3, 2019
2 parents 977d209 + 0a37409 commit a19ac25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions voila/handler.py
Expand Up @@ -36,8 +36,10 @@ def get(self, path=None):
notebook_config = self.config_manager.get('notebook')
# except for the widget extension itself, since voila has its own
load_extensions = notebook_config.get('load_extensions', {})
if "jupyter-js-widgets/extension" in load_extensions:
load_extensions["jupyter-js-widgets/extension"] = False
if 'jupyter-js-widgets/extension' in load_extensions:
load_extensions['jupyter-js-widgets/extension'] = False
if 'voila/extension' in load_extensions:
load_extensions['voila/extension'] = False
nbextensions = [name for name, enabled in load_extensions.items() if enabled]
else:
nbextensions = []
Expand Down

0 comments on commit a19ac25

Please sign in to comment.