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
import marimo
__generated_with = "0.0.0"
app = marimo.App()
@app.cell
def _():
"""Script with main block in pypercent."""
@app.cell
def _():
import sys
return (sys,)
@app.cell
def _(sys):
def _main_():
print("Running as script")
sys.exit(0)
_main_()
if __name__ == "__main__":
app.run()