Running Jupyter notebooks under docker


I’m attempting to run a DM Jupyter notebook under docker/podman.
I’ve found the instructions at Running DM Jupyter Notebooks locally, but I’m afraid I need more hand-holding.

On CentOS 8.2, I can successfully run
podman run -p8888:8888
to start a minimal jupyter notebook that I can connect to in my browser.

When I try a similar thing with sciplat-lab:
podman run -p 8888:8888 /opt/lsst/software/stack/conda/miniconda3-4.7.12/envs/lsst-scipipe-1a1d771/bin/jupyter notebook
when I attempt to browse it I get “The connection to the server was reset while the page was loading.”. I get a similar problem with r19_0_0.

Thanks for any help with this…

The previous post you mentioned had some formatting difficulties, and some other things in it are now outdated, but the basic gist that you have to override the ENTRYPOINT for the container still applies. (The container is designed to be run under JupyterHub, not to provide a standalone Lab.)

To update that post a little, I think it should work to append:

bash -c 'source /opt/lsst/software/stack/loadLSST.bash; jupyter notebook --ip='

to your podman command. Additional volume mounts may be desirable.

Thanks for the quick reply; that worked for me.