Skip to main content

marimo-lens

PyPI License: Apache 2.0

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.

Connect an agent

Connect through marimo pair or the editor's code-mode sidebar, select a result in Lens, and tell the agent:

Use Lens to address my current selection.

The quickstart covers the complete path from connection to a reviewed chart change.

In the notebook kernel, import marimo_lens._capability followed by help(marimo_lens._capability) prints the agent briefing installed with this package. Connect an agent covers the briefing, marimo_lens.agent.connect(), and the inspection, verification, and review workflow.

Documentation

What is Lens? · Getting started · Connect an agent · Custom targets · Python API · Data and trust

Source, issue tracking, and contributor documentation live in the marimo-lens repository.

Metadata

Release files for marimo-lens 0.2.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marimo-lens 0.2.6
File Size Uploaded Provenance Actions
marimo_lens-0.2.6.tar.gz 275.0 kB Without provenance Details for marimo_lens-0.2.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for marimo-lens 0.2.6
File Interpreter ABI Platform Actions
marimo_lens-0.2.6-py3-none-any.whl Python 3 none any Details for marimo_lens-0.2.6-py3-none-any.whl

Total release size: 582.3 kB

Release files / marimo_lens-0.2.6.tar.gz

Download URL marimo_lens-0.2.6.tar.gz
Size 275.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cdc8631e777a5ac48f46fcda93607bb5725134043e4d48586918a2bb249bf358
BLAKE2b-256 checksum
How to use checksums
4596054ad3ce14d072ca1d3f24a9e048059ff2251b97143733b5b35e415a69ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / marimo_lens-0.2.6-py3-none-any.whl

Download URL marimo_lens-0.2.6-py3-none-any.whl
Size 307.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55850972de310f5b7dbd19231f1bdb6f00e294a1782ea34b0f76a7fc9cf4e6bb
BLAKE2b-256 checksum
How to use checksums
0b2360d82c0d9018165fc7939c8cdc5eaa21f55630347423f219e5f5b5aff600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for marimo-lens 0.2.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page