Skip to content

Commit b010e1d

Browse files
authored
Support custom page_data_hook function (#7387)
1 parent 433f180 commit b010e1d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

notebook/app.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ def get_page_config(self) -> dict[str, t.Any]:
120120
logger=self.log,
121121
),
122122
)
123+
124+
# modify page config with custom hook
125+
page_config_hook = self.settings.get("page_config_hook", None)
126+
if page_config_hook:
127+
page_config = page_config_hook(self, page_config)
128+
123129
return page_config
124130

125131

0 commit comments

Comments
 (0)