#What it does
The jupyter-notebook skill creates clean, reproducible Jupyter notebooks for two primary modes: experiments/exploratory analysis and tutorials/teaching walkthroughs. It uses bundled templates and a helper script to generate well-structured notebooks and avoid hand-authoring raw notebook JSON.
#How to use
bash
$jupyter-notebookCreate a Jupyter notebook for this task with clear sections, runnable cells, and concise takeaways.
#Decision tree
- Exploratory, analytical, or hypothesis-driven -- choose experiment
- Instructional, step-by-step, or audience-specific -- choose tutorial
- Editing an existing notebook -- treat as a refactor
#Workflow
- Lock the intent -- Identify kind (experiment or tutorial), objective, audience, and done criteria
- Scaffold from template -- Use the helper script to avoid raw JSON authoring
- Fill with small, runnable steps -- One step per code cell, markdown cells for explanations
- Apply the right pattern -- Experiment patterns or tutorial patterns from references
- Edit safely -- Preserve structure, prefer targeted edits over full rewrites
- Validate -- Run top-to-bottom when possible, use quality checklist
#Scaffold commands
bash
# Experiment notebook
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind experiment \
--title "Compare prompt variants" \
--out output/jupyter-notebook/compare-prompt-variants.ipynbbash
# Tutorial notebook
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
--kind tutorial \
--title "Intro to embeddings" \
--out output/jupyter-notebook/intro-to-embeddings.ipynb#Dependencies
Optional for local execution:
bash
uv pip install jupyterlab ipykernelThe bundled scaffold script uses only the Python standard library.
This skill is from the OpenAI Skills Catalog.