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.

556 B
Raw Blame

Dictionary

/// marimo-embed

@app.cell
def __():
    first_name = mo.ui.text(placeholder="First name")
    last_name = mo.ui.text(placeholder="Last name")
    email = mo.ui.text(placeholder="Email", kind="email")

    dictionary = mo.ui.dictionary(
        {
            "First name": first_name,
            "Last name": last_name,
            "Email": email,
        }
    )
    return
@app.cell
def __():
    mo.hstack(
      [dictionary, dictionary.value],
      justify="space-between"
    )
    return

///

::: marimo.ui.dictionary