jupyter-live-kernel

Execute stateful Python code iteratively via a live Jupyter kernel.

247|22|Updated Dec 11, 2024
One-click install
npx skills add https://github.com/graniet/kheish --skill jupyter-live-kernel-graniet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jupyter-live-kernel
Source: https://github.com/graniet/kheish/tree/main/skills/data-science/jupyter-live-kernel
Command: npx skills add https://github.com/graniet/kheish --skill jupyter-live-kernel-graniet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standard one-shot code execution tools do not persist variable state between runs, making iterative exploration, incremental code development, and inspection of intermediate results tedious and inefficient for data science and machine learning tasks.

Core Features & Use Cases

  • Stateful Python REPL: Execute Python code via a live Jupyter kernel where variables, imports, and objects persist across all execution steps.
  • Notebook Management: View, edit, insert, and delete notebook cells, plus run full notebook verifications to ensure end-to-end correctness.
  • Use Case: A data scientist can load a dataset, run cleaning steps, inspect DataFrame outputs, and tweak analysis code incrementally without re-running the entire workflow from scratch each time.

Quick Start

Use the jupyter-live-kernel skill to run iterative Python code for your data analysis, inspect intermediate results, and modify notebook cells as you build your workflow.

Frequently Asked Questions about jupyter-live-kernel

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

FAQPage Schema
How do I keep Python variables persistent across multiple code executions?

You can keep Python variables persistent across multiple code runs by using a stateful Jupyter kernel. This approach maintains variable state, imports, and objects in memory between execution steps, avoiding the limitations of stateless one-shot code execution.

Why does my Python data exploration require reloading datasets after every run?

Your Python data exploration requires reloading datasets because standard one-shot execution is stateless. A live Jupyter kernel solves this by maintaining stateful Python execution, allowing you to load data once and inspect intermediate results across subsequent steps.

Do I need a running JupyterLab server to manage notebook cells iteratively?

Yes, you need a running JupyterLab server to manage notebook cells iteratively. You also require the hamelnb helper utility and the uv package manager to execute code, inspect live variables, and manage notebook content via structured JSON CLI commands.

Can I run full notebook verifications to ensure end-to-end correctness?

Yes, you can run full notebook verifications to ensure end-to-end correctness. The live Jupyter kernel supports viewing, editing, inserting, and deleting notebook cells, allowing you to run complete verifications across your entire notebook workflow.