Uploaded July 2023 | Updated December 2026, 2 hours ago
Building & maintaining the docker image used whenever a user logs into a JupyterHub is one of the most time consuming, hard yet rewarding parts of running a JupyterHub. Done right, it can wow users - "YOU CAN DO THAT?!". But if not properly designed, something as simple as adding a new python package can turn into a multi-week ordeal that breaks everything, and makes the maintainer of the image hate computers. A lot of the industry's docker image advice needs to be modified for use when building docker images for use with JupyterHub, as they are meant to have arbitrary code executed in them. General docker advice often does not cover our use cases at all (who else is putting fortran into docker?).
This talk summarizes lessons learnt in building a wide variety of images for JupyterHubs over the years. It will cover:
Building the simplest possible image that can work with a JupyterHub
Best practices for installing python & most python-related packages inside the image, and why (hint: use mamba)
When to base off a community built docker image (such as rocker, pangeo or jupyter-stacks), and the various tradeoffs associated with it.
Basic maintenance that must be performed on an image periodically so a simple package install doesn't turn into a 3 week nightmare
Suggestions for automatic building & testing with CI / CD and mybinder.org
Best practices for including R in your image
Best practices for running non-Jupyter frontends (such as RStudio, virtual linux desktop, code-server, etc) in your JupyterHub
The audience would be able to walk away with much better knowledge on how to maintain a docker image for use with JupyterHub in a way that keeps both the users and the maintainers of the image happy.
Building & maintaining the docker image used whenever a user logs into a JupyterHub is one of the most time consuming, hard yet rewarding parts of running a JupyterHub. Done right, it can wow users - "YOU CAN DO THAT?!". But if not properly designed, something as simple as adding a new python package can turn into a multi-week ordeal that breaks everything, and makes the maintainer of the image hate computers. A lot of the industry's docker image advice needs to be modified for use when building docker images for use with JupyterHub, as they are meant to have arbitrary code executed in them. General docker advice often does not cover our use cases at all (who else is putting fortran into docker?).
This talk summarizes lessons learnt in building a wide variety of images for JupyterHubs over the years. It will cover:
Building the simplest possible image that can work with a JupyterHub
Best practices for installing python & most python-related packages inside the image, and why (hint: use mamba)
When to base off a community built docker image (such as rocker, pangeo or jupyter-stacks), and the various tradeoffs associated with it.
Basic maintenance that must be performed on an image periodically so a simple package install doesn't turn into a 3 week nightmare
Suggestions for automatic building & testing with CI / CD and mybinder.org
Best practices for including R in your image
Best practices for running non-Jupyter frontends (such as RStudio, virtual linux desktop, code-server, etc) in your JupyterHub
The audience would be able to walk away with much better knowledge on how to maintain a docker image for use with JupyterHub in a way that keeps both the users and the maintainers of the image happy.



![Eduardo Blancas Beyond Papermill: A New Notebook Executor For Running Notebooks in Production | Ju
Papermill has become a widely used tool for executing Jupyter notebooks. Teams use papermill for many production use cases, such as scheduled report generation, model re-training, etc. However, since papermill relies on spinning up a second process with the IPython kernel to execute code, it has several drawbacks when used in production.
This talk will introduce an alternative notebook executor that powers Ploomber, a popular open-source orchestration framework. This new executor runs notebooks in a single process, allowing us to provide capabilities for production workloads, such as interactive debugging with pdb and notebook profiling (CPU, and memory usage). The executor is integrated into the Ploomber project and can also be used from the command line, like papermill.
Some experience with Jupyter (notebook or lab) and the terminal is required. Experience with papermill is optional.
Outline:
- [0 - 2 minute] Introduction papermill
- [2- 6] Papermills drawbacks
- [6 - 10] Running notebooks in a single process
- [10 - 16] Debugging notebook execution with pdb
- [16 - 22] Profiling notebooks
- [22 - 26] Orchestrating notebook pipelines in production with Ploomber
- [26 - 28] Summary and conclusions
- [28 - 30] Q&A Eduardo Blancas Beyond Papermill: A New Notebook Executor For Running Notebooks in Production | Ju](https://i.ytimg.com/vi/rlEy_JoOye0/mqdefault.jpg)






