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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
FastAPI + marimo, as an API endpoint
This is a simple example of how to use FastAPI with marimo. This example turns marimo notebooks into an API endpoint, which can be embedded in any FastAPI app.
- Turning functions defined in a notebook into an API endpoint
- Overriding global variables and returning cell outputs
Running the app
- Install
uv - Run the app with
uv run --no-project main.py - Then run
curl http://localhost:8000/greet?name=coder