Skip to content
This repository was archived by the owner on Apr 17, 2026. It is now read-only.
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions caliban/platform/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,16 @@
jupyter_args = [
"-m", "jupyter", jupyter_cmd, \
"--ip=0.0.0.0", \
"--port={}".format(port), \
f"--port={port}", \
"--no-browser"
]

mount_args = [f"--app-dir={b.container_home()}"] if lab else []

Check warning on line 75 in caliban/platform/notebook.py

View check run for this annotation

Codecov / codecov/patch

caliban/platform/notebook.py#L75

Added line #L75 was not covered by tests
docker_args = ["-p", "{}:{}".format(port, port)] + run_args

ps.run_interactive(job_mode,
entrypoint="python",
entrypoint_args=jupyter_args,
entrypoint_args=jupyter_args + mount_args,
run_args=docker_args,
inject_notebook=inject_arg,
jupyter_version=version,
Expand Down