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 my_imports():
import os
import sys
return os, sys
@app.cell
def compute(os, sys):
result = os.getcwd() + sys.platform
return (result,)
@app.cell
def display(result):
print(result)
@app.function
def add(a, b):
return a + b
@app.function(hide_code=True)
def subtract(a, b):
return a - b
@app.class_definition
class MyClass:
def __init__(self, val):
self.val = val
def double(self):
return self.val * 2
@app.class_definition(hide_code=True)
class HiddenClass:
def __init__(self, val):
self.val = val
if __name__ == "__main__":
app.run()