Spaces:
Sleeping
Sleeping
File size: 585 Bytes
59d8662 877e799 59d8662 839d626 59d8662 877e799 59d8662 877e799 59d8662 877e799 59d8662 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import marimo
__generated_with = "0.14.13"
app = marimo.App(width="medium")
@app.cell
def _():
import marimo as mo
qp = mo.query_params()
ui = mo.md(
'''
- What's x?: {x}
- How many times?: {y}
'''
).batch(
x=mo.ui.slider(start=1, stop=10, value=qp.get("x", 3), include_input=True),
y=mo.ui.slider(start=1, stop=10, value=qp.get("y", 4), include_input=True)
)
return qp, ui
@app.cell
def add(qp, ui):
z = ui["x"].value * ui["y"].value
qp, ui, z
return
if __name__ == "__main__":
app.run()
|