Skip to main content

Marimo attached to your datasette

Project description

datasette-marimo

Use marimo inside of Datasette.

Installation

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, there are also some helper functions available that ensure that Marimo connects to the same datasette instance that is hosting it.

from datasette_marimo import Datasette

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

# 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")

Fun detail

You can also connect to another datasette instance that is hosted elsewhere if you want. The project assumes that you're main interest is running Marimo inside of datasette but you can also connect to another datasette instance if it is public.

from datasette_marimo import Datasette

Datasette("https://calmcode-datasette.fly.dev/")

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for datasette_marimo-0.1.tar.gz
Algorithm Hash digest
SHA256 9d3ffc354f66e70efbcbbebfc3d912c47fd7febf2190929a3ea38f0701359d64
MD5 f30552668fd57fa8a11fcc3e66c195be
BLAKE2b-256 7699293f1f323cb787371e9e689345c6c737d26c28c649f32406e23831af5149

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datasette_marimo-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 faa5fd43896550d0ca83d9c762b8baabe05d04fdf5faa050cb3bc9415d4542c1
MD5 11c2212f32870d5c8781bb1c22c6cf2f
BLAKE2b-256 0fe646c4f5c10be53d7d320dddd1c86d04c90356e7707911e43f2f5259719c19

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