jupyter-live-kernel

Runs Python code in a live Jupyter notebook kernel, preserving state between calls.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MarbleSodas/Mavis --skill jupyter-live-kernel-marblesodas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jupyter-live-kernel
Source: https://github.com/MarbleSodas/Mavis/tree/main/skills/data-science/jupyter-live-kernel
Command: npx skills add https://github.com/MarbleSodas/Mavis --skill jupyter-live-kernel-marblesodas

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of needing a persistent Python workspace for iterative data science work without manually managing state between one-off executions.

Core Features & Use Cases

  • Stateful Python REPL: Run Python code across multiple turns while keeping variables, imports, and objects alive between executions.
  • Notebook-aware workflow: Execute code in an existing notebook and inspect or modify notebook cells to evolve an analysis.
  • Live inspection & editing: List variables, preview specific variables, and edit notebook cell sources to refine results.

Use Case: You are exploring a dataset and repeatedly tweak transformations (e.g., cleaning steps, feature engineering, and model experiments) while keeping intermediate results to avoid re-running expensive computations.

Quick Start

Use jupyter-live-kernel to execute incremental analysis code against scratch.ipynb and keep the state for follow-up queries.

Frequently Asked Questions about jupyter-live-kernel

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

FAQPage Schema
How do I maintain Python variables and imports across multiple executions in a notebook?

To maintain Python variables across executions, you need a stateful Python REPL environment. This Skill runs code through a live Jupyter kernel tied to a notebook, keeping variables, imports, and objects alive between multiple turns.

Can I inspect and modify Jupyter notebook cells during iterative data analysis?

Yes, you can inspect and modify Jupyter notebook cells during iterative data analysis. The live kernel supports listing variables, previewing specific variables, and editing notebook cell sources to refine your analysis results.

What do I need to run a stateful Python REPL for incremental machine learning development?

To run a stateful Python REPL for incremental machine learning development, you need the uv package manager available, a JupyterLab server running locally, and a target notebook path for execution.

Why does my Python code re-run expensive computations when tweaking data transformations?

Your Python code re-runs expensive computations because standard execution lacks persistent state. Using a live Jupyter kernel allows you to keep intermediate results alive, avoiding re-computation when tweaking data transformations or feature engineering.

What is the best way to explore a dataset while keeping intermediate results in Python?

The best way to explore a dataset while keeping intermediate results in Python is using a stateful execution environment. A live Jupyter kernel enables iterative exploration by persisting variables and objects across sequential code runs.

Does jupyter-live-kernel work without a locally running JupyterLab server?

No, jupyter-live-kernel does not work without a locally running JupyterLab server. It requires a local JupyterLab instance and uv availability to execute code through the live kernel and manage notebook state.