跳到正文
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(原文)

安装前可以查看交给 AI 代理的指令内容。

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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月20日 更新

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

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月20日 更新

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

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月20日 更新

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月20日 更新

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

中文简介正在准备中。当前显示原文说明。

jsboige/CoursIA162026年10月20日 更新

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月20日 更新

查看 jsboige 的全部技能

报告此技能的问题