Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot official · OpenAI

jupyter-notebook — Claude Code skill: what it does, how to install

Scaffolds reproducible Jupyter notebooks for experiments and tutorials using bundled templates and a helper script. It prevents manual raw JSON editing errors.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/skills --skill jupyter-notebook -a claude-code
Open on GitHub

What jupyter-notebook does

The skill generates .ipynb files tailored for two flows: exploratory experiments and instructional tutorials. Instead of piecing JSON notebooks together by hand, it uses the bundled new_notebook.py script. The script loads templates from assets/, injects the title, and outputs a ready-to-run file.

Notebooks are organized into focused, runnable code cells paired with brief markdown explanations. The scaffolding script relies strictly on the Python standard library, so it runs without third-party dependencies. However, executing the resulting notebook locally requires jupyterlab and ipykernel.

Editing raw notebook JSON manually risks silent formatting breaks, so relying on the scaffold script keeps files valid from the start.

What it helps with

  • scaffold a clean notebook for hypothesis testing or data exploration
  • turn raw scripts and rough notes into a guided tutorial
  • refactor existing .ipynb files for reproducibility
  • avoid JSON schema errors when generating notebooks programmatically

Example prompts for the agent

  • Create an experiment notebook to compare prompt variants
  • Generate a tutorial notebook explaining text embeddings step by step
  • Refactor my existing experiment.ipynb into smaller runnable steps

How to install jupyter-notebook

1Skills CLI (Vercel)

npx skills add openai/skills --skill jupyter-notebook -a claude-code

2Manually: put the files in place

~/.claude/skills/jupyter-notebook/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/jupyter-notebook/

From the same set20

The whole set →
pdf official openai A skill for reading, creating and reviewing PDFs where layout matters. Useful when the agent builds a document and needs to see how it renders. Claude Code CX Codex Cursor +1 13,400installs gh-fix-ci official openai Finds failing GitHub Actions checks on a pull request, inspects logs, and drafts a fix plan. The skill modifies code only after explicit approval. Claude Code CX Codex Cursor +1 11,400installs openai-docs official openai The skill finds current OpenAI guidance for API work, Codex, model selection, migrations, and prompt updates, using official documentation. Claude Code CX Codex Cursor +1 6,100installs imagegen official openai This skill creates and edits raster images such as illustrations, textures, sprites, and mockups. Use it when the output should be a bitmap asset. Claude Code CX Codex Cursor +1 5,700installs skill-creator official openai Official guide for drafting and updating agent skills. It structures procedures, bundled scripts, and documentation while keeping token overhead low. Claude Code CX Codex Cursor +1 4,900installs gh-address-comments official openai This skill finds the open pull request for the current branch, lists review comments, and applies the fixes you select through gh. Claude Code CX Codex Cursor +1 4,800installs cloudflare-deploy official openai This skill helps choose Cloudflare services and prepare application or infrastructure deployments through Workers, Pages, and related products. Claude Code CX Codex Cursor +1 4,300installs aspnet-core official openai Guides building, refactoring, and architecting ASP.NET Core apps using official Microsoft patterns. Helpful for Minimal APIs, Blazor, and migrations. Claude Code CX Codex Cursor +1 3,900installs

Similar

read-arxiv-paper karpathy This skill reads an arXiv paper from its source files and writes a Markdown report. It is useful when research needs to be connected to nanochat. Claude Code CX Codex Cursor +1 2,800installs nature-paper-card Yuan1z0825 Turns one scientific paper into a structured deep-reading card: methods, experiment-to-claim evidence, limitations. Useful when you need the paper taken apart, not summarised. Claude Code CX Codex Cursor +1 10,400installs bmad-forge-idea bmad-code-org A skill that interrogates your half-formed idea. Different personas poke at weak points until you can act on it or drop it with confidence. Claude Code CX Codex Cursor +1 11,100installs agents-sdk cloudflare Helps build, debug, and review Cloudflare Agents SDK applications using the agents package and official documentation. Claude Code CX Codex Cursor +1 105,700installs gpt-image-2-style-library freestylefly Converts user ideas into production-ready GPT-Image2 prompts using the awesome-gpt-image-2 catalog. Helps configure layout, style tags, and concrete constraints. Claude Code CX Codex Cursor +1 4,000installs gemini-live-api-dev official google-gemini Guides real-time bidirectional streaming development with the Gemini Live API and migration to Gemini 3.8 Live. Claude Code CX Codex Cursor +1 10,200installs skill-creator official anthropics Creates and refines skills, then tests them with prompts, evaluations, and performance checks. Claude Code Claude.ai 414,180installs writing-for-agents Matt Pocock Guidance for writing skills and agent-facing documents. Use it when editing AGENTS.md, CLAUDE.md, or reference files reached from them. Claude Code 466,719installs

Questions about jupyter-notebook

How to install jupyter-notebook in Claude Code?

Run npx skills add openai/skills --skill jupyter-notebook -a claude-code. This installs the skill and bundled templates into your agent environment.

What is the difference between experiment and tutorial kinds?

The experiment kind focuses on analytical workflows and hypothesis testing. The tutorial kind emphasizes instructional, step-by-step guidance for readers.

What dependencies are required to generate notebooks?

Generating notebooks with new_notebook.py requires only the Python standard library. Running the generated notebooks locally requires optional packages such as jupyterlab and ipykernel.

Source text

SKILL.md · Apache-2.0
---
name: "jupyter-notebook"
description: "Use when the user asks to create, scaffold, or edit Jupyter notebooks (`.ipynb`) for experiments, explorations, or tutorials; prefer the bundled templates and run the helper script `new_notebook.py` to generate a clean starting notebook."
---


# Jupyter Notebook Skill

Create clean, reproducible Jupyter notebooks for two primary modes:

- Experiments and exploratory analysis
- Tutorials and teaching-oriented walkthroughs

Prefer the bundled templates and the helper script for consistent structure and fewer JSON mistakes.

## When to use
- Create a new `.ipynb` notebook from scratch.
- Convert rough notes or scripts into a structured notebook.
- Refactor an existing notebook to be more reproducible and skimmable.
- Build experiments or tutorials that will be read or re-run by other people.

## Decision tree
- If the request is exploratory, analytical, or hypothesis-driven, choose `experiment`.
- If the request is instructional, step-by-step, or audience-specific, choose `tutorial`.
- If editing an existing notebook, treat it as a refactor: preserve intent and improve structure.

## Skill path (set once)

```bash
export CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
export JUPYTER_NOTEBOOK_CLI="$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py"
```

User-scoped skills install under `$CODEX_HOME/skills` (default: `~/.codex/skills`).

## Workflow
1. Lock the intent.
Identify the notebook kind: `experiment` or `tutorial`.
Capture the objective, audience, and what "done" looks like.

2. Scaffold from the template.
Use the helper script to avoid hand-authoring raw notebook JSON.

```bash
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
  --kind experiment \
  --title "Compare prompt variants" \
  --out output/jupyter-notebook/compare-prompt-variants.ipynb
```

```bash
uv run --python 3.12 python "$JUPYTER_NOTEBOOK_CLI" \
  --kind tutorial \
  --title "Intro to embeddings" \
  --out output/jupyter-notebook/intro-to-embeddings.ipynb
```

3. Fill the notebook with small, runnable steps.
Keep each code cell focused on one step.
Add short markdown cells that explain the purpose and expected result.
Avoid large, noisy outputs when a short summary works.

4. Apply the right pattern.
For experiments, follow `references/experiment-patterns.md`.
For tutorials, follow `references/tutorial-patterns.md`.

5. Edit safely when working with existing notebooks.
Preserve the notebook structure; avoid reordering cells unless it improves the top-to-bottom story.
Prefer targeted edits over full rewrites.
If you must edit raw JSON, review `references/notebook-structure.md` first.

6. Validate the result.
Run the notebook top-to-bottom when the environment allows.
If execution is not possible, say so explicitly and call out how to validate locally.
Use the final pass checklist in `references/quality-checklist.md`.

## Templates and helper script
- Templates live in `assets/experiment-template.ipynb` and `assets/tutorial-template.ipynb`.
- The helper script loads a template, updates the title cell, and writes a notebook.

Script path:
- `$JUPYTER_NOTEBOOK_CLI` (installed default: `$CODEX_HOME/skills/jupyter-notebook/scripts/new_notebook.py`)

## Temp and output conventions
- Use `tmp/jupyter-notebook/` for intermediate files; delete when done.
- Write final artifacts under `output/jupyter-notebook/` when working in this repo.
- Use stable, descriptive filenames (for example, `ablation-temperature.ipynb`).

## Dependencies (install only when needed)
Prefer `uv` for dependency management.

Optional Python packages for local notebook execution:

```bash
uv pip install jupyterlab ipykernel
```

The bundled scaffold script uses only the Python standard library and does not require extra dependencies.

## Environment
No required environment variables.

## Reference map
- `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.

© openai · Apache-2.0 · openai/skills

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor