Dynamically configure the Notebook images list
In Charmed Kubeflow, when a you’re creating a notebook, a dropdown list of container images is presented to choose from.
This guide shows how to dynamically change the list of images for the 3 types of Notebook: Jupyter Notebooks, VSCode, and RStudio.
When you first install Charmed Kubeflow, these images lists are set to a default of commonly used images. For each type of Notebook, the list of available images is set in the config options of the
# view the list of images for Jupyter Notebooks
juju config jupyter-ui jupyter-images
# view the list for VSCode
juju config jupyter-ui vscode-images
# view the list for RStudio
juju config jupyter-ui rstudio-images
rstudio-images configs allow you to specify YAML input defining the list of images.
First, define a file
images.yaml file with the format:
Make sure the images are publicly available, otherwise the Notebook server will not start.
An example of
Next, you need to update the config by passing the file to Juju. Run:
juju config jupyter-ui email@example.com
juju config jupyter-ui jupyter-images > images_v1.yaml
# edit images_v1.yaml, save as images_v2.yaml
juju config jupyter-ui jupyter-images=@images_v2.yaml
The same can be done for
rstudio-images in place of
Last updated 3 months ago.