update: jupyter start dir

This commit is contained in:
tao.chen
2026-08-04 11:59:04 +08:00
parent ddf112034d
commit 60b17f5bef
+2 -1
View File
@@ -204,6 +204,7 @@ async def start_workspace(ws_id: str) -> dict:
f"--ServerApp.token={token}",
f"--ServerApp.base_url={base_path}",
f"--notebook-dir={workspace_path}",
f"--ServerApp.root_dir={workspace_path}",
"--ServerApp.terminals_enabled=False",
"--NotebookApp.terminals_enabled=False",
"--ServerApp.allow_origin=*",
@@ -215,7 +216,7 @@ async def start_workspace(ws_id: str) -> dict:
try:
process, log_file = start_process(
cmd,
workspace_path.as_posix(),
WORKSPACES_ROOT,
env={"PATH": f"/app/.venv/bin:{os.environ.get('PATH', '')}"},
)
except Exception as e: