Skip to content

Conversation

@jrlegrand
Copy link
Member

@jrlegrand jrlegrand commented Nov 10, 2025

Explanation

Added a docker container for marimo.

https://marimo.io/
https://docs.marimo.io/
https://docs.marimo.io/guides/working_with_data/
https://docs.marimo.io/guides/working_with_data/sql/

Rationale

It's an AI native python and SQL notebook. And it's open source.

Tests

Experimented with how to make a connection.

Wrote a notebook or two.

Additional info / how to use

If you re-build SageRx (or probably just docker compose down and up), you should have a marimo container running on port 2718 (i.e. just replace the 3002 of the pgAdmin container with 2718). You should see an existing notebook called template.py.

When you open it, it should look something like this.

The first two cells essentially make the connection to the database - you may need to run those first.

You should be able to edit the SQL or add new SQL cells.

  • OR start working with SageRx data directly from the database using Python cells
  • OR combine SQL and Python because each SQL cell output is stored in a DuckDB database / dataframe(?).
image

Because of .gitignore, the /notebooks directory will be hidden to GitHub and therefore not be included in any commits by default. Obviously the template.py file is in there to begin with - so we can (and probably will) choose to add other default templates or examples of how to work with these notebooks.

Please explore and let me know if you have any good ideas for this. One idea I had is to create a python-based dashboard for Airflow that makes it easier to do simple actions that involve Airflow. Obviously could still go into Airflow for deeper debugging or analysis - but would make it easier to work with. Not sure if that's possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants