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.

docs: fix run button embed (#3340)

Akshay Agrawal977624a788d5
diff --git a/docs/api/inputs/run_button.md b/docs/api/inputs/run_button.md
index c2e9b924a1..9c82af24b6 100644
--- a/docs/api/inputs/run_button.md
+++ b/docs/api/inputs/run_button.md
@@ -1,29 +1,7 @@
# Run Button
-/// marimo-embed
- size: medium
-
-```python
-def __():
- b = mo.ui.run_button()
- b
- return
-
-def __():
- s = mo.ui.slider(1, 10)
- s
- return
-
-def __():
- mo.stop(not b.value, \"Click `run` to submit the slider's value\")
-
- s.value
- return
-```
-
+/// marimo-embed-file
+ filepath: examples/ui/run_button.py
///
::: marimo.ui.run_button