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

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.3.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.3-py3-none-any.whl (10.7 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for datasette_marimo-0.1.3.tar.gz
Algorithm Hash digest
SHA256 45bfe166c9a6fb41438db8caf5d7a3156a03712e819c6b8bdb8a4910ed0c4406
MD5 61d2ec44e3ced21cc04e61665e9076ac
BLAKE2b-256 39177bfc9af9a73ad006daddd6634f7b4f475a30e8fd658ecf9ab8f39a07f7f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datasette_marimo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 77e7871ad0f171fd613ccb3988fdcac79695d28ece91f05db7ef25da87f32e6a
MD5 5648af9f0204ac546fb865512dd47cba
BLAKE2b-256 225b44e86cc9bc27f85d7a740a132195c4a8fafafd5f23f7feaf17bbb0c9c23e

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