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.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 datasette-marimo 0.2.2
File Size Uploaded
datasette_marimo-0.2.2.tar.gz 18.1 MB Details

Built distribution (wheel)

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

Total release size: 27.4 MB

Release files / datasette_marimo-0.2.2.tar.gz

Download URL datasette_marimo-0.2.2.tar.gz
Size 18.1 MB
Tags Source
SHA-256 checksum
How to use checksums
20629c180d365b7ef8f8b5bda91ec8e54945132262cbcfa1a41e247d5c37ad5f
BLAKE2b-256 checksum
How to use checksums
6cab38ee154cefbeb89c121c90d7dd3b2cd3f3e2bb57c1bfaae9343de7126776
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.2-py3-none-any.whl

Download URL datasette_marimo-0.2.2-py3-none-any.whl
Size 9.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
138d0b7227789bb204ee8d43eb29e9aade71b688bbf8adf8ab9d1fc2624ae8b9
BLAKE2b-256 checksum
How to use checksums
409fd2e492e66dec5852e94c59c50ec396a15369f463660be512cdd089dfc3cd
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

This release

0.2.2 This release

2 release files

0.2.1

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