Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.