Skip to content

Commit 6543552

Browse files
committed
Set file_url_prefix trait for opening notebooks directly
1 parent 9305c5f commit 6543552

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

jupyterlab_server/app.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class LabServerApp(ExtensionAppJinjaMixin, LabConfig, ExtensionApp):
2121
name = "jupyterlab_server"
2222
extension_url = "/lab"
2323
app_name = "JupyterLab Server Application"
24+
file_url_prefix = "/lab/tree"
2425

2526
@property
2627
def app_namespace(self):
@@ -69,9 +70,9 @@ def app_namespace(self):
6970
"whitelist_uris": ("allowed_extensions_uris", "1.2"),
7071
}
7172

72-
# Method copied from
73+
# Method copied from
7374
# https://github.com/jupyterhub/jupyterhub/blob/d1a85e53dccfc7b1dd81b0c1985d158cc6b61820/jupyterhub/auth.py#L143-L161
74-
@observe(*list(_deprecated_aliases))
75+
@observe(*list(_deprecated_aliases))
7576
def _deprecated_trait(self, change):
7677
"""observer for deprecated traits"""
7778
old_attr = change.name

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
'jsonschema>=3.0.1',
5959
'packaging',
6060
'requests',
61-
'jupyter_server~=1.1',
61+
'jupyter_server~=1.4',
6262
]
6363

6464
if __name__ == '__main__':

0 commit comments

Comments
 (0)