From 22dfb178eb8390af5ddac23ade02c355ec659e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Collonval?= Date: Tue, 7 May 2024 12:24:33 +0200 Subject: [PATCH] Fix writing settings in page_config --- .../jupyter-server-ydoc/jupyter_server_ydoc/app.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py b/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py index 2b8b0301..4527786e 100644 --- a/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py +++ b/projects/jupyter-server-ydoc/jupyter_server_ydoc/app.py @@ -91,13 +91,9 @@ def initialize_settings(self): ) def initialize_handlers(self): - self.serverapp.web_app.settings.setdefault( - "page_config_data", - { - "disableRTC": self.disable_rtc, - "serverSideExecution": self.server_side_execution, - }, - ) + page_config = self.serverapp.web_app.settings.setdefault("page_config_data", {}) + page_config.setdefault("disableRTC", self.disable_rtc) + page_config.setdefault("serverSideExecution", self.server_side_execution) # Set configurable parameters to YStore class for k, v in self.config.get(self.ystore_class.__name__, {}).items():