Skip to content

Commit 5e91123

Browse files
authored
app_version should be a trait (#117)
1 parent 3096a5b commit 5e91123

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jupyterlab_server/app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@ class LabServerApp(ExtensionAppJinjaMixin, LabConfig, ExtensionApp):
2121
name = "jupyterlab_server"
2222
extension_url = "/lab"
2323
app_name = "JupyterLab Server Application"
24-
app_version = __version__
2524

2625
@property
2726
def app_namespace(self):
2827
return self.name
2928

3029
default_url = Unicode('/lab',
31-
help='The default URL to redirect to from `/`')
30+
help='The default URL to redirect to from `/`')
3231

3332
# Should your extension expose other server extensions when launched directly?
3433
load_other_extensions = True
3534

35+
app_version = Unicode('', help='The version of the application.',
36+
default = __version__)
37+
3638
blacklist_uris = Unicode('', config=True,
3739
help="Deprecated, use `LabServerApp.blocked_extensions_uris`")
3840

0 commit comments

Comments
 (0)