Skip to content

Commit

Permalink
Add allow_insecure_kernelspec_params to page config
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiaSliusar committed Aug 12, 2024
1 parent bca8978 commit e15ba88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyterlab_server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ def get_page_config(self) -> dict[str, Any]:
server_root = self.settings.get("server_root_dir", "")
server_root = server_root.replace(os.sep, "/")
base_url = self.settings.get("base_url")
server_app = self.settings.get("serverapp")
allow_insecure_kernelspec_params = server_app.allow_insecure_kernelspec_params

# Remove the trailing slash for compatibility with html-webpack-plugin.
full_static_url = self.static_url_prefix.rstrip("/")
Expand All @@ -91,6 +93,7 @@ def get_page_config(self) -> dict[str, Any]:
page_config.setdefault("ignorePlugins", [])
page_config.setdefault("serverRoot", server_root)
page_config["store_id"] = self.application.store_id # type:ignore[attr-defined]
page_config.setdefault("allow_insecure_kernelspec_params", allow_insecure_kernelspec_params)

server_root = os.path.normpath(os.path.expanduser(server_root))
preferred_path = ""
Expand Down

0 comments on commit e15ba88

Please sign in to comment.