Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Initialize handler page_config from Server traitlets#6366

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jtpio merged 3 commits intojupyter:mainfrombollwyvl:add-default-page-config
Apr 19, 2022
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
initialize page_config from settings
  • Loading branch information
@bollwyvl
bollwyvl authoredApr 18, 2022
commite833ea46c234bde7404c0c328cda42175b80505b
6 changes: 3 additions & 3 deletionsnotebook/app.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -32,8 +32,8 @@ def get_page_config(self):
config = LabConfig()
app = self.extensionapp
base_url = self.settings.get("base_url")

page_config ={
page_config = self.settings.setdefault("page_config_data", {})
page_config.update({
"appVersion": version,
"baseUrl": self.base_url,
"terminalsAvailable": self.settings.get("terminals_available", False),
Expand All@@ -42,7 +42,7 @@ def get_page_config(self):
"frontendUrl": ujoin(self.base_url, "/"),
"exposeAppInBrowser": app.expose_app_in_browser,
"collaborative": app.collaborative,
}
})

if "hub_prefix" in app.serverapp.tornado_settings:
tornado_settings = app.serverapp.tornado_settings
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp