A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.
Misc. SQL examples 🛢️
This folder contains illustrative examples of using SQL in marimo.
[!TIP] For a broad overview of using SQL in marimo, run
marimo tutorial sqlat the command-line.
Running examples
The requirements of each notebook are serialized in them as a top-level comment. Here are the steps to open an example notebook:
- Install marimo
- Install
uv - Open an example with
marimo edit --sandbox <notebook.py>.
[!TIP] The
--sandboxflag opens the notebook in an isolated virtual environment, automatically installing the notebook's dependencies 📦
You can also open notebooks without uv, with just marimo edit <notebook.py>;
however, you'll need to install the requirements yourself.