marimo-on-fastapi / nb /prod_marimo.py
pup-py's picture
file browser minimal
e1bb57e
raw
history blame contribute delete
899 Bytes
import marimo
__generated_with = "0.18.4"
app = marimo.App(width="full", app_title="๐Ÿ’š Marimo")
@app.cell
def _():
import marimo as mo
from src.marimo_apps import UI
return UI, mo
@app.cell
def _(UI, mo):
md = mo.md("""
# Yes, Notebooks In Production | PyCon 2026
## Marimo Features
0. Testing! Cell function needs to be named correctly to be picked up by pytest
1. Layout: I like columns
2. Config: `marimo config show`, the file is `~/.config/marimo/config.toml`
3. Reactivity: off/lazy/autorun
- global and private variables
- `mo.stop`
- hack: no tracking mutations
4. Inspect
5.
""")
mo.hstack([UI.NAV, md], widths=[1, 5])
return
@app.cell
def test_1():
assert 1
return
@app.cell
def _(UI):
UI.BUILD_DETAILS
return
if __name__ == "__main__":
app.run()