/nanlabs-tooling:jupyter-notebookfrom nanlabs-tooling
Create, scaffold, or refactor Jupyter notebooks (.ipynb) for experiments and tutorials. Prefer the bundled templates and helper script (`new_notebook.py`, exposed as `nan-newnotebook`) over authoring raw notebook JSON.
Ships in nanlabs-tooling. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Create clean, reproducible Jupyter notebooks for two primary modes:
Prefer the bundled templates and the helper script for consistent structure and fewer JSON mistakes.
.ipynb notebook from scratch.experiment.tutorial.python3 (provided by nan-bootstrap).uv for local notebook execution and dependency isolation
(also from nan-bootstrap).nan-skills check jupyter-notebook validates python3 is present.
The bundled scaffolder (scripts/new_notebook.py, stdlib only) loads a
template, updates the title cell, and writes a notebook to --out. Two ways
to invoke it:
nan-newnotebook wrapper (recommended)nan-bootstrap installs a tiny wrapper at ~/.local/bin/nan-newnotebook so
the script is available without remembering its full path:
nan-newnotebook --kind experiment \
--title "Compare prompt variants" \
--out output/jupyter-notebook/compare-prompt-variants.ipynb
nan-newnotebook --kind tutorial \
--title "Intro to embeddings" \
--out output/jupyter-notebook/intro-to-embeddings.ipynb
python3 <skill-root>/scripts/new_notebook.py \
--kind experiment \
--title "Compare prompt variants" \
--out output/jupyter-notebook/compare-prompt-variants.ipynb
If you prefer uv for a pinned interpreter:
uv run --python 3.12 python <skill-root>/scripts/new_notebook.py \
--kind tutorial \
--title "Intro to embeddings"
The script uses only the Python standard library — no extra deps required.
experiment or tutorial. Capture the objective,
audience, and what "done" looks like.nan-newnotebook or option B above).references/experiment-patterns.md.
For tutorials,
references/tutorial-patterns.md.references/notebook-structure.md first.references/quality-checklist.md.assets/experiment-template.ipynb and
assets/tutorial-template.ipynb (chezmoi-managed, read-only — do not edit
in place; copy and modify).tmp/jupyter-notebook/ for intermediate files; delete when done.output/jupyter-notebook/ when working in a
repository.ablation-temperature.ipynb).Prefer uv for dependency management.
Optional Python packages for local notebook execution:
uv pip install jupyterlab ipykernel
The bundled scaffold script needs no extra dependencies.
references/experiment-patterns.md —
experiment structure and heuristics.references/tutorial-patterns.md —
tutorial structure and teaching flow.references/notebook-structure.md —
notebook JSON shape and safe editing rules.references/quality-checklist.md —
final validation checklist.LICENSE.txt (opens in a new tab)NOTICE.txt (opens in a new tab)assets/experiment-template.ipynb (opens in a new tab)assets/tutorial-template.ipynb (opens in a new tab)references/experiment-patterns.md (opens in a new tab)references/notebook-structure.md (opens in a new tab)references/quality-checklist.md (opens in a new tab)references/tutorial-patterns.md (opens in a new tab)scripts/new_notebook.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nanlabs/agent-toolkit --plugin nanlabs-tooling2 skills in this plugin