From 60b17f5bef5ab5c98ace59f71710c8af1923d9f5 Mon Sep 17 00:00:00 2001 From: "tao.chen" <93983997+taochen-ct@users.noreply.github.com> Date: Tue, 4 Aug 2026 11:59:04 +0800 Subject: [PATCH] update: jupyter start dir --- runtime/src/runtime/process.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/src/runtime/process.py b/runtime/src/runtime/process.py index 5e73f34..599cef9 100644 --- a/runtime/src/runtime/process.py +++ b/runtime/src/runtime/process.py @@ -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: