Skip to main content
Integrate your cluster with Marimo, a reactive Python notebook built for reproducibility and interactivity.

Prerequisites

First, start by installing Marimo and setting up a notebook according to the Marimo quickstart documentation. You will also need the following packages:

Connecting to the database

Use SQLAlchemy to create a connection engine. The connection string format is:
Replace <host> with your database FE host.

Using Marimo UI for credentials

To avoid hardcoding credentials, use Marimo’s interactive UI elements to collect them at runtime. Cell 1 — render input fields:
Cell 2 — create the engine using the entered values:

Querying the database

With the engine established, use pandas to run queries:
Marimo notebook connected to the database Note Multi-catalog support requires Marimo version 0.22.5 or later.