jupyter-live-kernel

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

Updated May 28, 2026
One-click install
npx skills add https://github.com/patty-chow/the-stable --skill jupyter-live-kernel-patty-chow
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: jupyter-live-kernel
Source: https://github.com/patty-chow/the-stable/tree/main/skills/data-science/jupyter-live-kernel
Command: npx skills add https://github.com/patty-chow/the-stable --skill jupyter-live-kernel-patty-chow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jupyterlab, uv, and includes scripts (resource) components.

What problem does it solve? One-shot code execution loses all variables between runs, forcing you to rebuild state every time. This Skill provides a persistent Python REPL backed by a live Jupyter kernel, so variables, imports, and objects survive across executions for iterative exploration. ## Core Features & Use Cases - Stateful Code Execution: Run Python code against a live kernel where variables, imports, and DataFrames persist across calls. - Variable Inspection: List and preview live kernel variables to inspect intermediate results without re-running code. - Notebook Cell Editing: View, insert, replace, and delete notebook cells, plus restart-and-run-all verification for clean top-to-bottom runs. - 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, create a scratch notebook session, then ask the agent to run Python code in the live kernel and inspect the resulting variables.

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 stateful Python code in a Jupyter kernel from the command line?▼

Use the hamelnb jupyter_live_kernel.py script with the execute subcommand, passing --path to a notebook and --code with your Python code. State persists across calls because all executions share the same live kernel session.

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 objects. Use one-shot execution for stateless scripts that need tool access like web search or file operations.

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

Run the variables subcommand with list to see all live variables, or preview with --name to inspect a specific variable's value. Note that --path goes before the list or preview sub-subcommand.

Why does the first Jupyter kernel execution time out?▼

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

Can I install extra Python packages for the Jupyter kernel?▼

The kernel uses JupyterLab's Python environment, so packages must be installed into that environment before use. Install them with uv into the JupyterLab tool environment, then they are importable in executed code.