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.0

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.0
File Size Uploaded
datasette_marimo-0.2.0.tar.gz 18.1 MB Details

Built distribution (wheel)

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

Total release size: 27.4 MB

Release files / datasette_marimo-0.2.0.tar.gz

Download URL datasette_marimo-0.2.0.tar.gz
Size 18.1 MB
Tags Source
SHA-256 checksum
How to use checksums
4d09e673a4c3ef8835bb9ffec2cff967f1a5fa66c276d050f906d02a8acf91b9
BLAKE2b-256 checksum
How to use checksums
832a0499f257ef0c6cd97b85b52ed60ebabc29eb210f00e3fad84195cf4dfbdc
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.0-py3-none-any.whl

Download URL datasette_marimo-0.2.0-py3-none-any.whl
Size 9.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
430db7e2cf6aefcaaba07de48d87b0fe94e01f7d1ee671b7ceb7b7d8bd33c2fc
BLAKE2b-256 checksum
How to use checksums
502fe00bc6f5da18df691c995a1253ae1fdba64873eaed96ee8f88866bf9df74
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

0.2.1

2 release files

This release

0.2.0 This release

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