Skip to content

notebook-templates

Recipe card from the charly-jupyter plugin (Images — the deployable catalog).

notebook-templates – Starter notebook data candy

Section titled “notebook-templates – Starter notebook data candy”
Property Value
Dependencies (none)
Packages (none)
Services (none)
Volumes workspace -> /workspace
Data data/notebooks -> workspace volume
Install files (none)

This is a data candy — the first of its kind in the project. It uses the data: field in charly.yml to map a directory of files to a named volume:

info: "Starter notebook templates for jupyter"
data:
- src: data/notebooks
volume: workspace

At build time, the contents of data/notebooks/ are staged into /data/workspace/ inside the box.

At deploy time, when the volume is configured as a bind mount (charly config --bind workspace), charly config copies the staged data from the box into the host-backed volume directory. This seeds the volume with starter content (e.g., getting-started.ipynb).

File Purpose
getting-started.ipynb Starter notebook for new jupyter deployments
charly.yml
jupyter:
candy:
- notebook-templates
# ... other candies
Terminal window
# Deploy with bind-backed workspace volume
charly config jupyter --bind workspace
# Data is copied from image to host volume on first config
charly start jupyter

Use when the user asks about:

  • The notebook-templates candy or its contents
  • Data candies and the data: field in charly.yml
  • How starter content gets provisioned into volumes
  • The getting-started.ipynb notebook
  • How charly config seeds bind-backed volumes with box data
  • /charly-check:check — declarative testing (check: block, charly check box, charly check live)