update: jupyter start dir
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user