Skip to content

Commit

Permalink
Support custom page_data_hook function
Browse files Browse the repository at this point in the history
  • Loading branch information
bluestealth committed May 30, 2024
1 parent 433f180 commit 21cbfb3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions notebook/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 21cbfb3

Please sign in to comment.