From 465571c85210c104ae1e318b83c7a55be2382ad4 Mon Sep 17 00:00:00 2001 From: dfguerrerom Date: Mon, 14 Oct 2024 15:56:37 +0200 Subject: [PATCH] add default disabled extensions --- modules/sandbox/script/voila.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/sandbox/script/voila.py b/modules/sandbox/script/voila.py index 0a0ac1a54..d6980dd93 100644 --- a/modules/sandbox/script/voila.py +++ b/modules/sandbox/script/voila.py @@ -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, )