Skip to content

Commit

Permalink
test out lab installation
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ritchie committed Jul 24, 2020
1 parent 0bd5667 commit adbd647
Showing 1 changed file with 4 additions and 2 deletions.
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 @@ def run_notebook(job_mode: c.JobMode,
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 []
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

0 comments on commit adbd647

Please sign in to comment.