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

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasette_marimo-0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 6ee43817bb737e16869a1dd43999e50448e639becac7744729c78e0ac5b1c6eb
MD5 0bae54086bc20d3f64e6fb00c22d16b9
BLAKE2b-256 c12e32cd2ac8059addbaaf0043d1662c90252b72cdc56b3aabab6a7518f7e54f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for datasette_marimo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b2d8af2c73f3312036218792d86c73083ce780149b8d34fd92ffff1109b6277
MD5 a4fd4a203cc6ee89431aff18e0710999
BLAKE2b-256 b2ad1985ceb596c029034afcc4b4f29413d793b154de63b1582b16f2bab62677

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