diff --git a/notebook/app.py b/notebook/app.py index 832bb1f5bb..d7cc0079a1 100644 --- a/notebook/app.py +++ b/notebook/app.py @@ -120,6 +120,12 @@ def get_page_config(self) -> dict[str, t.Any]: logger=self.log, ), ) + + # modify page config with custom hook + page_config_hook = self.settings.get("page_config_hook", None) + if page_config_hook: + page_config = page_config_hook(self, page_config) + return page_config