Skip to content

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.

243 B
Raw Blame

Switch

/// marimo-embed

@app.cell
def __():
    switch = mo.ui.switch(label="do not disturb")
    return

@app.cell
def __():
    mo.hstack([switch, mo.md(f"Has value: {switch.value}")])
    return

///

::: marimo.ui.switch