Skip to content

Commit

Permalink
add default disabled extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom committed Oct 14, 2024
1 parent b77d381 commit 465571c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/sandbox/script/voila.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,20 @@ def page_config_hook(
page_config,
gpc(app_extensions_paths, logger=log),
)
disabled_extensions = [
"@voila-dashboards/jupyterlab-preview",
"@jupyter/collaboration-extension",
"@jupyter-widgets/jupyterlab-manager",
]
disabled_extensions.extend(page_config.get("disabledExtensions", []))

required_extensions = []
federated_extensions = deepcopy(page_config["federated_extensions"])

page_config["federated_extensions"] = filter_extension(
federated_extensions=federated_extensions,
disabled_extensions=disabled_extensions,
required_extensions=required_extensions,
extension_allowlist=voila_configuration.extension_allowlist,
extension_denylist=voila_configuration.extension_denylist,
)
Expand Down

0 comments on commit 465571c

Please sign in to comment.