Skip to main content

Marimo attached to your datasette

Project description

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

We host a demo on Github pages that shows what the notebook experience could be like on a datasette server but we also have a YouTube tutorial that gives more details.

Usage

When you run a datasette server, go to "/marimo" in the browser. From there you get Marimo running in WASM with some helper tools to grab data our of datasette. The benefit is that you can run all sorts of visualisation tools and machine learning on the data without having to install any software on your local machine.

There is one big downside: refresh the page and you loose progress. Make sure you download beforehand.

Note, when you open the notebook you'll spot helpers that ensure that Marimo connects to the same datasette instance that is hosting it. Here's what it roughly looks like:

# Fetch useful information about your datasette instance
datasette = Datasette()
datasette.databases                  # List of databases
datasette.tables(database="sqlite")  # List of tables in a database

# Two different methods to get your data as a Polars DataFrame
df = datasette.get_polars(database="sqlite", table="chickweight")
df = datasette.sql_polars(database="sqlite", sql="select * from chickweight")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_marimo-0.1.4.tar.gz (17.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_marimo-0.1.4-py3-none-any.whl (10.7 MB view details)

Uploaded Python 3

File details

Details for the file datasette_marimo-0.1.4.tar.gz.

File metadata

  • Download URL: datasette_marimo-0.1.4.tar.gz
  • Upload date:
  • Size: 17.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.7

File hashes

Hashes for datasette_marimo-0.1.4.tar.gz
Algorithm Hash digest
SHA256 377e3a0ff936b97c59bd1731ecbddeb8ecdd34ca1171d1d92f9e90fd6e2e09a5
MD5 10a5d65b8ee272678d00b0cef649edeb
BLAKE2b-256 36955d58932120a8bbbb7a6aadfc306385391eea118ee49d031c4d7c8a3e6de6

See more details on using hashes here.

File details

Details for the file datasette_marimo-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_marimo-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d969d177d6c5a9341e59ce8011f20a988e7ff35e998c08f9560f2a09dc8675f8
MD5 84669b3728b9f536c15cdcf845a193a6
BLAKE2b-256 10ab8f27981c0bd259309882f0bed2e6aff68bb4c614176de06888b9a0c5c610

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page