Skip to main content

marimo-ipynb

Preview existing Jupyter notebooks inside marimo — without executing their cells, converting their files, or rewriting the original notebook.

Designed for educators sharing saved lesson materials, data scientists reviewing analyses, and teams migrating gradually from Jupyter to marimo.

Availability: v0.3.2 is the proposed first PyPI release and is not yet published. The existing v0.3.1 GitHub tag and release are retained for history; their publishing workflow is affected by an upstream advisory and must not be used for upload. See publishing runbook. Independent project, not an official marimo API.

What can I do?

  • Display Markdown, highlighted code, saved stdout/stderr, exceptions and raster plots.
  • Opt into interactive saved DataFrame tables and supported Plotly figures.
  • Present notebooks using teaching, compact or report layouts, with collapsible cells and a table of contents.
  • Inspect rendering diagnostics and resource usage without rerunning notebook code.
  • Render static HTML fragments when native interactive widgets are unnecessary.

Quick start

Requires Python 3.10 or newer; see the tested compatibility matrix. For now, obtain an authorized local checkout of this repository. Run these commands from its root.

With uv (macOS/Linux):

uv venv
source .venv/bin/activate
uv pip install -e .
python -m marimo edit

With Python venv (Windows PowerShell):

python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .
.\.venv\Scripts\python.exe -m marimo edit

In a marimo notebook cell, import the viewer and leave the display object as the last expression:

from marimo_ipynb import read_ipynb

read_ipynb("examples/rich_tables.ipynb")

This uses a bundled synthetic notebook. Replace the path with your own trusted .ipynb file. Paths resolve from the working directory; relative images resolve from the original notebook's directory. The viewer does not launch a Jupyter kernel.

Show only lesson instructions

read_ipynb("examples/rich_tables.ipynb", show_code=False, show_outputs=False)

Markdown and raw text cells remain visible. Code and saved outputs can be hidden independently.

Interactive saved tables

from marimo_ipynb import RenderOptions

read_ipynb(
    "examples/rich_tables.ipynb",
    options=RenderOptions(rich_tables=True, table_page_size=10),
)

Supported rectangular saved tables offer search, sorting and pagination. These are saved snapshots, not reconstructed original DataFrames.

Interactive Plotly and presentation presets

Install the optional extra in the same environment:

uv pip install -e ".[plotly]"

Or use python -m pip install -e ".[plotly]" in a pip-enabled virtual environment.

from marimo_ipynb import PresentationOptions

read_ipynb(
    "examples/presentation.ipynb",
    options=RenderOptions(
        rich_tables=True,
        interactive_plotly=True,
        presentation=PresentationOptions.preset("teaching"),
    ),
)

Available presets: default, teaching, compact, report. Interactive charts require compatible saved Plotly JSON; otherwise saved raster or text is used when available.

Diagnostics

In one cell:

from marimo_ipynb import read_ipynb_with_diagnostics

result = read_ipynb_with_diagnostics(
    "examples/rich_tables.ipynb",
    options=RenderOptions(rich_tables=True),
)
result.content

In another cell:

result.diagnostics.to_records()

Diagnostics describe rendering decisions, Python-side timing and charged presentation bytes, not browser rendering performance or total memory. The result content contains the notebook's saved content; diagnostic records do not include notebook text or paths.

Jupyter or marimo-ipynb?

Task Jupyter marimo-ipynb
Edit and execute notebook cells Yes No
Recompute analysis Yes, with an appropriate kernel No
View existing saved outputs Yes Supported subset
Display an ipynb inside marimo Not its primary purpose Yes
Search/sort saved tables Depends on installed output/widgets Opt-in, supported snapshots
Keep source notebook unchanged Depends on user actions Read-only renderer

This package complements Jupyter; it is not a replacement for JupyterLab or a notebook converter.

Supported content

Content Support
Markdown, headings, lists, tables, emphasis Supported
Code cells and top-level fences Native highlighting for selected languages
PNG, JPEG, GIF, WebP Bounded local images, attachments and saved outputs
Saved stdout, stderr and exceptions Supported
Mathematics Restricted TeX subset; native only
Rectangular Pandas HTML / dataresource tables Opt-in
Plotly scatter, bar, histogram, box, heatmap Restricted saved JSON, optional extra
Arbitrary widgets Saved text/raster fallback where available
Raw active HTML, SVG, remote images Not directly rendered

Explore five synthetic examples in the demonstration gallery: quick start, retail EDA, interactive Plotly, teaching and diagnostics. Browser-generated captures are reviewed before inclusion.

Try the included examples

From the repository root, with the optional Plotly extra installed:

python -m marimo edit examples/rich_table_viewer.py
python -m marimo edit examples/plotly_viewer.py
python -m marimo edit examples/presentation_viewer.py

Run each command separately. For the broader synthetic rendering benchmark, first run python examples/generate_benchmark.py, then python -m marimo edit examples/benchmark_viewer.py.

Safety and known limitations

Only preview trusted notebooks and directories. The viewer does not execute notebook code, but it is not a security sandbox. Resource limits, restricted image paths and MIME validation reduce specific risks; they do not guarantee safety against hostile inputs.

Marimo's native math and Plotly frontend may load a MathJax CDN script. In Marimo 0.26.0, a legend change made before that script becomes ready can be reset when the original figure is reapplied. Wait for chart initialization or repeat the affected interaction. This upstream limitation is reproduced by a strict expected-failure browser test; it has not been fixed in the renderer. Static HTML does not add a remote mathematics engine.

Large raster previews may be slow. Native interactive widgets and arbitrary saved widget state are not reproduced by static HTML. Other Marimo versions and lower dependency bounds are not certified merely because installation succeeds.

See security boundaries, compatibility and user guide / troubleshooting.

Documentation

Guide Contents
User guide Rich outputs, presets, limits, diagnostics, troubleshooting
Public API Function signatures and configuration
Compatibility Tested environments and limitations
Architecture Rendering pipeline and module boundaries
Development guide Setup, tests, builds
Performance evidence Measured latency and Python allocations
Changelog Release history

Contributing and licence

Licensed under the MIT License. See contribution guidelines, code of conduct, support, security policy and maintenance policy. The repository remains private during public-release preparation.

Metadata

Release files for marimo-ipynb 0.3.2

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-ipynb 0.3.2
File Size Uploaded Provenance Actions
marimo_ipynb-0.3.2.tar.gz 44.9 kB With provenance Details for marimo_ipynb-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for marimo-ipynb 0.3.2
File Interpreter ABI Platform Actions
marimo_ipynb-0.3.2-py3-none-any.whl Python 3 none any Details for marimo_ipynb-0.3.2-py3-none-any.whl

Total release size: 75.0 kB

Release files / marimo_ipynb-0.3.2.tar.gz

Download URL marimo_ipynb-0.3.2.tar.gz
Size 44.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3fff987b0fb4d3eb00d532930c2f6789f2ac0fc722b30f0dbfa17d897c781b6d
BLAKE2b-256 checksum
How to use checksums
d3e7bbd5be6db0c1fd3b8058d7fa584d1aa04e341db829ba63850a21be0a47de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Release files / marimo_ipynb-0.3.2-py3-none-any.whl

Download URL marimo_ipynb-0.3.2-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31456bac9142b9f1bed37bd106d0437b385f5338307fc33c0758658b784d71d1
BLAKE2b-256 checksum
How to use checksums
8c62e722dbe8bcb313d2c545c03803f6ce4cc5d38bf61bb566445ebf6254686b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

Security for marimo-ipynb 0.3.2

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for marimo_ipynb-0.3.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 6, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files Full provenance

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