Marimo attached to your datasette
Project description
datasette-marimo
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette_marimo-0.1.2.tar.gz.
File metadata
- Download URL: datasette_marimo-0.1.2.tar.gz
- Upload date:
- Size: 17.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
272ab3e03a910f6f63649b5e06d07ec3e575bc2ca5bc04fbab93d0dfa862e7bc
|
|
| MD5 |
c882f7dc3ec6f5ae2cdc789ad92392d4
|
|
| BLAKE2b-256 |
f5947b38c2c8b8436ed848c7cb750b8833448725beabc1f228da417e4da90a5e
|
File details
Details for the file datasette_marimo-0.1.2-py3-none-any.whl.
File metadata
- Download URL: datasette_marimo-0.1.2-py3-none-any.whl
- Upload date:
- Size: 10.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
530add28bfec4e6e5c58c4fe2e807094c1a2e055371a9e96bf3ff6ea4a043103
|
|
| MD5 |
f37e97ef8a6f8a7643dad6b927f8157f
|
|
| BLAKE2b-256 |
268da7c5d87af2702a50caa3ef35c221a7b34f7758b481b9e814c54f75bcf81e
|