jupyter-live-kernel

Execute stateful Python code through a live Jupyter kernel via the hamelnb script.

1|Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Chia1104/agent-air --skill jupyter-live-kernel-chia1104
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: jupyter-live-kernel
Source: https://github.com/Chia1104/agent-air/tree/main/skills/hermes/data-science/jupyter-live-kernel
Command: npx skills add https://github.com/Chia1104/agent-air --skill jupyter-live-kernel-chia1104

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jupyterlab, uv.

What problem does it solve? One-shot code execution loses all variables between runs, forcing you to rebuild state repeatedly. This Skill provides a persistent Python REPL backed by a live Jupyter kernel, so imports, variables, and DataFrames survive across executions for iterative exploration. ## Core Features & Use Cases - Stateful Code Execution: Run Python code against a live kernel where variables, imports, and objects persist across calls. - Variable Inspection: List and preview live kernel variables to inspect DataFrames and intermediate results without re-running code. - Notebook Cell Editing: View, insert, replace, and delete notebook cells, plus restart-and-run-all verification for top-to-bottom reproducibility. - Use Case: While exploring a new dataset, load it into a pandas DataFrame once, then iteratively filter, plot, and transform it across many executions without reloading the data each time. ## Quick Start Start a JupyterLab server and use the jupyter-live-kernel skill to run Python code in a scratch notebook so I can explore this dataset iteratively.

Frequently Asked Questions about jupyter-live-kernel

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Python code in a persistent Jupyter kernel from the command line?▼

Use the jupyter_live_kernel.py script from hamelnb with the execute subcommand, passing --path to a notebook and --code with your Python code. State persists across calls because the same live kernel handles every execution.

When should I use a live Jupyter kernel instead of one-shot code execution?▼

Use a live kernel when you need state to persist across steps, such as iterative data exploration, DataFrame inspection, or building up complex code incrementally. Use one-shot execution for stateless scripts that finish in a single run.

What are the prerequisites for running the hamelnb Jupyter kernel script?▼

You need uv installed, JupyterLab installed via uv tool install jupyterlab, and a running Jupyter server. You also need a notebook file with an active kernel session created through the Jupyter REST API.

Why does the first code execution after starting JupyterLab time out?▼

The kernel needs a moment to initialize after the server starts, so the first execution may exceed the 30-second default timeout. Retry the execution, or pass a larger value such as --timeout 120 for setup or heavy computation.

How do I inspect variables in a running Jupyter kernel?▼

Use the variables subcommand with --path pointing to your notebook, followed by list to see all live variables or preview --name to inspect a specific one. Add --compact to reduce verbose JSON output.