jupyter-live-kernel

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

14|5|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill jupyter-live-kernel-mlt-oss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jupyter-live-kernel
Source: https://github.com/MLT-OSS/hermes-agent-go/tree/main/skills/data-science/jupyter-live-kernel
Command: npx skills add https://github.com/MLT-OSS/hermes-agent-go --skill jupyter-live-kernel-mlt-oss

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? One-shot code execution loses all variables between runs, forcing you to re-run entire scripts for every small change. 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 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 steps 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 persistent scratch notebook so I can explore my dataset step by step.

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 script's execute command with a notebook path and code string, for example: uv run "$SCRIPT" execute --path scratch.ipynb --code 'print(x)' --compact. State persists across execute calls, so variables and imports survive between runs.

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

Use a live kernel when you need state across steps, such as data science exploration, ML experimentation, or inspecting intermediate DataFrames. Use one-shot execution for stateless scripts that do not depend on prior variables.

What are the prerequisites for running hamelnb against Jupyter?

You need uv installed, JupyterLab installed via uv tool install jupyterlab, and a running Jupyter server. You must also create a kernel session through the Jupyter REST API before executing code.

Why does the first Jupyter kernel execution time out?

The kernel needs time to initialize after the server starts, so the first execution may hit the 30-second default timeout. Retry the command, and pass a larger value such as --timeout 120 for heavy computations.

How do I inspect variables in a running Jupyter kernel?

Use the variables subcommand: uv run "$SCRIPT" variables --path notebook.ipynb list --compact to list variables, or add preview --name <varname> to inspect a specific one. Note that --path goes before the list or preview sub-subcommand.