本文へ移動
cccskills
無料GitHub で公開

execute-notebook

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

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

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.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

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.

日本語の概要は準備中です。原文の説明を表示しています。

jsboige/CoursIA162026年10月11日 更新

Analyze PowerPoint slides qualitatively using vision AI. Arguments: <deck_path> [--render] [--slides 1,5,10]

日本語の概要は準備中です。原文の説明を表示しています。

jsboige/CoursIA162026年10月11日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

jsboige/CoursIA162026年10月11日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

jsboige/CoursIA162026年10月11日 更新

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

日本語の概要は準備中です。原文の説明を表示しています。

jsboige/CoursIA162026年10月11日 更新

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>]

日本語の概要は準備中です。原文の説明を表示しています。

jsboige/CoursIA162026年10月11日 更新

jsboige のスキルをすべて見る

このスキルの問題を報告する