Skip to content

Commit

Permalink
Remove custom page config handler
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiaSliusar committed Aug 12, 2024
1 parent 7f0ad3e commit 56b18aa
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions jupyter_server/serverapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,6 @@ def init_settings(
# collapse $HOME to ~
root_dir = "~" + root_dir[len(home) :]

self.allow_insecure_kernelspec_params = jupyter_app.allow_insecure_kernelspec_params

settings = {
# basics
"log_function": log_request,
Expand Down Expand Up @@ -462,7 +460,6 @@ def init_settings(
"server_root_dir": root_dir,
"jinja2_env": env,
"serverapp": jupyter_app,
"page_config_hook": (self.page_config_hook),
}

# allow custom overrides for the tornado web app.
Expand All @@ -473,10 +470,6 @@ def init_settings(
settings["xsrf_cookie_kwargs"] = {"path": base_url}
return settings

def page_config_hook(self, handler, page_config):
page_config["allow_insecure_kernelspec_params"] = self.allow_insecure_kernelspec_params
return page_config

def init_handlers(self, default_services, settings):
"""Load the (URL pattern, handler) tuples for each component."""
# Order matters. The first handler to match the URL will handle the request.
Expand Down

0 comments on commit 56b18aa

Please sign in to comment.