We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0f1d66 commit 788e118Copy full SHA for 788e118
jupyterlab_server/workspaces_app.py
@@ -10,6 +10,10 @@
10
from .config import LabConfig
11
from .workspaces_handler import WorkspacesManager
12
13
+# Default workspace ID
14
+# Needs to match PageConfig.defaultWorkspace define in packages/coreutils/src/pageconfig.ts
15
+DEFAULT_WORKSPACE = "default"
16
+
17
18
class WorkspaceListApp(JupyterApp, LabConfig):
19
version = __version__
@@ -84,7 +88,7 @@ def start(self):
84
88
print("Too many arguments were provided for workspace export.")
85
89
self.exit(1)
86
90
87
- raw = self.extra_args[0]
91
+ raw = DEFAULT_WORKSPACE if not self.extra_args else self.extra_args[0]
92
try:
93
workspace = self.manager.load(raw)
94
print(json.dumps(workspace))
0 commit comments