Point at results in a marimo notebook, hand them to your agent with a note, and optionally keep a record of what each request changed
Actively maintained. Last release 2 days ago, commits in 17 of the last 26 weeks. A safe choice.
pip install marimo-lensREADME as published on PyPI with version 0.2.6.
Let your agent see what you see.
marimo-lens connects a point or region on a rendered marimo notebook output to its producing cells, relevant notebook context, and an annotated image when capture succeeds. A live notebook agent can inspect the request, show its activity, and return results for review. A Lens that keeps a record lists resolved requests in History with whether their changes still hold. Reopen a selection from History to continue the analysis.
Install and mount
In a project managed by uv:
uv add marimo-lens
uv run marimo edit notebook.py
Requires Python 3.10–3.14 and marimo 0.25.2 or newer. marimo mounts Lens automatically once a cell that imports marimo runs. Mount it yourself to choose its options:
from marimo_lens import Lens
lens = Lens()
lens
Press Select, click a point or drag a region, then add a note.
Lens() keeps open selections, notes, and images in kernel memory. Keep a
record of resolved requests, with History and the code each request changed:
lens = Lens(record=True)
In the marimo editor the record is a file in the notebook's __marimo__/lens/
folder. Record lists
the options.
Custom pages can publish Lens target metadata
for notebook inputs, labels, rendering references, and image context. Lens
recognizes these source regions automatically. Add data-marimo-lens-target
to select authored copy or layout without notebook inputs. Each view controls
its targets through its own markup, including with automatically mounted Lens. Native
Marimo outputs remain selectable through their existing output cells.