Skip to main content
plugin logo

datasette-marimo

Use marimo inside of datasette.

Install

Install this plugin in the same environment as Datasette.

uv pip install datasette-marimo
datasette install datasette-marimo

Demo

The demo on GitHub Pages shows the notebook experience on a Datasette server.

Usage

Run a Datasette server. Open the top-right hamburger menu and click Open in marimo. You can also open /marimo directly.

marimo then runs in WASM with a connection to your Datasette instance. You can run visualization and machine learning tools on the data. You do not install any software on your local machine.

Warning: if you refresh the page, you lose your work. Export your work before you refresh.

The Open in marimo link reads the page you came from. It prefills the database and table, so the notebook opens ready to query that table.

Inside the notebook you connect through a marimo SQL connection from moutils. The connection appears in marimo's data-sources panel. You can browse the schema and write native SQL cells against it:

from moutils.db.datasette import DatasetteConnection, databases

databases(base_url)                          # list databases on the instance
conn = DatasetteConnection(base_url, "sqlite")  # connect to one database

# then, in a SQL cell (or from Python):
mo.sql("select * from chickweight limit 100", engine=conn)

The moutils connection runs synchronous HTTP in the browser. It needs a browser with JSPI support, such as Chrome or Edge. On other browsers, use the legacy helper below.

The notebook still includes the older Datasette helper class (get_polars / sql_polars) for backward compatibility. DatasetteConnection is the recommended path.

Metadata

Release files for datasette-marimo 0.2.1

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

Source distribution (sdist)

Source distribution for datasette-marimo 0.2.1
File Size Uploaded
datasette_marimo-0.2.1.tar.gz 18.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-marimo 0.2.1
File Interpreter ABI Platform
datasette_marimo-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.4 MB

Release files / datasette_marimo-0.2.1.tar.gz

Download URL datasette_marimo-0.2.1.tar.gz
Size 18.1 MB
Tags Source
SHA-256 checksum
How to use checksums
54fe677e8422a9f6352860f20d5b5f20d40804023992d3e841d2f41bdda166a8
BLAKE2b-256 checksum
How to use checksums
27c66efead9d075031b2485dff7c72de75acb8a00bf6e18bb913ab3c72ebe4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / datasette_marimo-0.2.1-py3-none-any.whl

Download URL datasette_marimo-0.2.1-py3-none-any.whl
Size 9.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
db22e2ce2c20bb2f967e1ab5ceed98e73db35828ae89be5fb5b76eb8e999516c
BLAKE2b-256 checksum
How to use checksums
3d27ba90cb127e08d97660b7d6ec6b4ceb20c8500d659f945daefc7ce272fd0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.2.2

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

2 release files

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