Skip to content
cccskills
FreePublished on GitHub

execute-notebook

Execute Jupyter notebooks using local scripts or MCP Jupyter. Arguments: <notebook_path> [--mode] [--cells] [--timeout] [--batch] [--save]

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Execute Notebook

Execute a Jupyter notebook with full lifecycle management.

Notebook: $ARGUMENTS

Options

  • --mode: full (default), selective, papermill
  • --cells: Specific cells (e.g., 0,5,10)
  • --timeout: Per-cell timeout in seconds (default 300)
  • --stop-on-error: Halt on first error
  • --batch: Enable BATCH_MODE for interactive notebooks
  • --save: Save outputs to original notebook

Execution by Kernel Type

Python (kernel: python3)

Local scripts (preferred for batch):

# Full execution via notebook_tools.py
python scripts/notebook_tools/notebook_tools.py execute {path} --timeout 300

# Cell-by-cell with verbose output via notebook_helpers.py
python scripts/notebook_tools/notebook_helpers.py execute {path} --verbose

# Specific cell execution
python scripts/notebook_tools/notebook_helpers.py execute {path} --cell 5 --timeout 60

MCP (for interactive debugging):

  • manage_kernel(action="start", kernel_name="python3") + execute_on_kernel

.NET (kernel: .net-csharp)

  • MCP cell-by-cell ONLY - Papermill and local scripts do NOT work with .NET kernels
  • CRITICAL: Set working directory first with SetCurrentDirectory()
  • See mcp-jupyter skill for detailed .NET patterns

GenAI notebooks

  • Check .env configuration first (use /validate-genai)
  • Use --batch for notebooks with interactive widgets
  • Use dedicated scripts: python scripts/genai-stack/validate_notebooks.py

Error Handling

ErrorCauseSolution
Kernel timeout.NET cold startRetry (30-60s normal)
File not foundWrong directorySetCurrentDirectory()
ModuleNotFoundErrorMissing dependencypip install
API key missing.env not configuredCheck OPENAI_API_KEY etc.

Report Format

Report: notebook name, kernel, mode, total/executed/successful/error cells, timing, error details.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Cycle 30 min du secrétaire vérificateur myia-po-2026:CoursIA-3. Atteste en tiers, du plus ancien au plus récent, les PRs ouvertes sans dossier valide (chaque READY, une fois lu et approuvé par ai-01, est mergé sans attendre son cycle), et fait circuler l'information sur workspace-CoursIA-3.

The English summary is being prepared. Showing the original description.

jsboige/CoursIA16Updated Oct 20, 2026

Analyze a Slidev deck qualitatively — organ reports (structure, composition) + vision AI on rendered PNGs. Arguments: <deck_id> [--slides 1,5,10]

The English summary is being prepared. Showing the original description.

jsboige/CoursIA16Updated Oct 20, 2026

Build or improve Jupyter notebooks iteratively with quality scoring. Arguments: <new|improve|fix> <path> [--topic] [--domain] [--level] [--quality] [--max-iter]

The English summary is being prepared. Showing the original description.

jsboige/CoursIA16Updated Oct 20, 2026

Detect cell-ordering / enchainement problems in Jupyter notebooks (canonical-order slippage, misplaced or forgotten cells). Arguments: [target] [--severity HIGH|MED|LOW] [--json]

The English summary is being prepared. Showing the original description.

jsboige/CoursIA16Updated Oct 20, 2026

Clean up and reorganize markdown in enriched Jupyter notebooks. Arguments: [target] [--dry-run] [--aggressive] [--hierarchy-only]

The English summary is being prepared. Showing the original description.

jsboige/CoursIA16Updated Oct 20, 2026

Cycle de coordination ai-01 (coordinateur UNIQUEMENT — jamais sur un worker). Lit memoire + dashboards + inbox + GitHub, merge les PRs pretes, tranche les design-gates, dispatche des grains par lane, reporte. Arguments: [--dispatch] [--focus <topic>]

The English summary is being prepared. Showing the original description.

jsboige/CoursIA16Updated Oct 20, 2026

See all skills by jsboige

Report a problem with this skill