Back to list
anntnzrb

jupyter

by anntnzrb

Configurations for LLM Harnesses

0🍴 0📅 Jan 23, 2026

SKILL.md


name: jupyter description: "Work with Jupyter notebooks without leaving Claude Code. Execute cells, inspect outputs, validate structure, and convert formats. Activate when working with .ipynb files, user mentions notebooks, Jupyter, or needs to run/debug notebook code."

Jupyter Notebook Skill

Execute, inspect, and manage Jupyter notebooks directly from Claude Code. Eliminates the context-switching loop between CLI and browser.

Workflow

1. INSPECT  → Understand notebook structure (nb.py inspect)
2. EDIT     → Modify cells with NotebookEdit tool
3. EXECUTE  → Run cells and capture outputs (nb.py execute -i)
4. VERIFY   → Read outputs, check for errors (nb.py show --output-only)
5. ITERATE  → Repeat until complete

Setup (One-Time)

# Install a Jupyter kernel (needed for execution)
uv run --with ipykernel python -m ipykernel install --user --name python3

Scripts

Located in this skill's scripts/ directory:

ScriptPurposeDependencies
nb.pyFull notebook CLInbformat, nbclient, nbconvert
validate.pyQuick syntax checknbformat only

Both scripts are executable with inline dependencies (PEP 723) - uv handles everything automatically.

CLI Reference

# Inspect structure
nb.py inspect notebook.ipynb

# Show cell contents
nb.py show notebook.ipynb
nb.py show notebook.ipynb -c 0,2-4      # specific cells
nb.py show notebook.ipynb -o            # include outputs
nb.py show notebook.ipynb --output-only # outputs only
nb.py show notebook.ipynb -o --save-images ./images/  # save images to dir

# Execute cells
nb.py execute notebook.ipynb            # all cells, show output
nb.py execute notebook.ipynb -i         # save outputs back to file
nb.py execute notebook.ipynb -c 0,2-4   # specific cells
nb.py execute notebook.ipynb --save-images ./outputs/  # save images

# Search cells
nb.py grep "import pandas" notebook.ipynb      # find cells with pattern
nb.py grep -i "def.*function" notebook.ipynb   # case-insensitive regex
nb.py grep -C "pattern" notebook.ipynb         # show full cell context
nb.py grep --cells-only "pattern" notebook.ipynb  # just cell indices

# Validate (lightweight - only needs nbformat)
validate.py notebook.ipynb

# Convert
nb.py convert notebook.ipynb --to py
nb.py convert notebook.ipynb --to html -o output.html

# Clear outputs
nb.py clear notebook.ipynb

Quick Patterns

Execute and Read Outputs (No Browser Needed)

# Execute all cells, save outputs back to file
nb.py execute notebook.ipynb -i

# Then show just the outputs
nb.py show notebook.ipynb --output-only

Debug a Failing Cell

# Execute up to the failing cell
nb.py execute notebook.ipynb -c 0-5 --allow-errors

# Inspect the error output
nb.py show notebook.ipynb -c 5 -o

Edit Cell (Built-in Tool)

Use Claude's NotebookEdit tool to modify cells:

  • cell_id: The cell ID or index
  • new_source: New cell content
  • edit_mode: "replace", "insert", or "delete"
  • cell_type: "code" or "markdown"

Validate Before Commit

# Quick syntax check (lightweight deps)
validate.py notebook.ipynb

# Clear outputs for clean commits
nb.py clear notebook.ipynb

Tool Integration

TaskTool
Read notebook structurenb.py inspect
Read cell contentsnb.py show or read tool
Edit cellsNotebookEdit tool
Execute cellsnb.py execute
View outputsnb.py show -o or --output-only
Search cellsnb.py grep
Extract imagesnb.py show -o --save-images DIR
Validate syntaxvalidate.py (fast) or nb.py validate
Convert formatsnb.py convert

References

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon