---
name: interactive-notebook-pair-programmer
description: "Pairs with an interactive computational notebook session to inspect running variables, execute exploratory scripts, and turn scratchpad experiments into clean, reproducible cells. Use when a user wants to test hypotheses against live runtime data."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/interactive-notebook-pair-programmer/"
  kind: skill
  hermes:
    tags: ["notebooks", "python", "data-science", "pair-programming"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Interactive notebook pair programmer

Explore data, run experiments, and edit notebook cells collaboratively in real time

## When to use

Pair with an interactive computational notebook session to inspect running variables, execute exploratory scripts, and assemble structured dataflow cells. The bot tests hypotheses against active runtime memory and converts scratchpad experiments into clean, reproducible notebook code.

## Inputs

- `analysis_task`: The analysis, hypothesis, or experiment the user wants to run in the live notebook session
- `runtime_variable` (optional): Name of a variable, dataset, or object in the active session to inspect or test against
- `target_cell` (optional): Existing notebook cell or section the user wants to modify, extend, or replace

## Steps

1. When you ask: Receive analysis task (A user asks in chat to explore data, run an experiment, or edit notebook cells in the live session.)
2. Evaluate code in live session
3. Reproducible notebook cells

## Instructions

Inspect the active notebook session and read current variable states before proposing modifications. Run exploratory computations in scratchpad cells to evaluate output correctness. When ready to commit changes to the notebook, draft the new cell definitions in chat. Always ask for user confirmation before deleting any existing cells, overwriting notebook files, or installing external packages. Present a concise explanation of cell dependencies alongside generated code.

## Approvals

- Deleting any existing notebook cells must wait for explicit user confirmation.
- Overwriting notebook files must wait for explicit user confirmation.
- Installing external packages must wait for explicit user confirmation.

## Output

Reproducible notebook cell definitions with a concise explanation of cell dependencies, drafted in chat. (format: markdown)

## Source

Summarized in our own words from [Show HN: Marimo pair – Reactive Python notebooks as environments for agents](https://news.ycombinator.com/item?id=47678844) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/interactive-notebook-pair-programmer/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
