From adbd6471748d1fb8df8c02c34945f3d2ee2017ac Mon Sep 17 00:00:00 2001 From: Sam Ritchie Date: Fri, 24 Jul 2020 10:53:53 -0600 Subject: [PATCH] test out lab installation --- caliban/platform/notebook.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/caliban/platform/notebook.py b/caliban/platform/notebook.py index 1a42569..4213b72 100644 --- a/caliban/platform/notebook.py +++ b/caliban/platform/notebook.py @@ -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,