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: