Execute notebook

From jsboige/CoursIA · View interactive version

Execute notebook is an AI agent skill from the GitHub repository jsboige/CoursIA. Execute Jupyter notebooks using local scripts or MCP Jupyter. Arguments: <notebook_path> [--mode] [--cells] [--timeout] [--batch] [--save]

How to use this skill

Skill file

Execute Notebook

Execute a Jupyter notebook with full lifecycle management.

Notebook: $ARGUMENTS

Options

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):

.NET (kernel: .net-csharp)

GenAI notebooks

Error Handling

| Error | Cause | Solution |

|-------|-------|----------|

| Kernel timeout | .NET cold start | Retry (30-60s normal) |

| File not found | Wrong directory | SetCurrentDirectory() |

| ModuleNotFoundError | Missing dependency | pip install |

| API key missing | .env not configured | Check OPENAI_API_KEY etc. |

Report Format

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.