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()