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.token={token}",
|
||||||
f"--ServerApp.base_url={base_path}",
|
f"--ServerApp.base_url={base_path}",
|
||||||
f"--notebook-dir={workspace_path}",
|
f"--notebook-dir={workspace_path}",
|
||||||
|
f"--ServerApp.root_dir={workspace_path}",
|
||||||
"--ServerApp.terminals_enabled=False",
|
"--ServerApp.terminals_enabled=False",
|
||||||
"--NotebookApp.terminals_enabled=False",
|
"--NotebookApp.terminals_enabled=False",
|
||||||
"--ServerApp.allow_origin=*",
|
"--ServerApp.allow_origin=*",
|
||||||
@@ -215,7 +216,7 @@ async def start_workspace(ws_id: str) -> dict:
|
|||||||
try:
|
try:
|
||||||
process, log_file = start_process(
|
process, log_file = start_process(
|
||||||
cmd,
|
cmd,
|
||||||
workspace_path.as_posix(),
|
WORKSPACES_ROOT,
|
||||||
env={"PATH": f"/app/.venv/bin:{os.environ.get('PATH', '')}"},
|
env={"PATH": f"/app/.venv/bin:{os.environ.get('PATH', '')}"},
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user