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 some deprecated links, old components (#3552)

Shahmir Varqhab36593cabaf4
diff --git a/docs/api/status.md b/docs/api/status.md
index 0186632bdf..499728e139 100644
--- a/docs/api/status.md
+++ b/docs/api/status.md
@@ -15,7 +15,7 @@ to `tqdm`.
```python
@app.cell
def __():
- rerun = mo.ui.button("Rerun")
+ rerun = mo.ui.button(label="Rerun")
rerun
return
@@ -46,7 +46,7 @@ async def __():
```python
@app.cell
def __():
- rerun = mo.ui.button("Rerun")
+ rerun = mo.ui.button(label="Rerun")
rerun
return
diff --git a/docs/guides/expensive_notebooks.md b/docs/guides/expensive_notebooks.md
index 5290e18fec..8d03d135b2 100644
--- a/docs/guides/expensive_notebooks.md
+++ b/docs/guides/expensive_notebooks.md
@@ -159,7 +159,7 @@ def expensive_component():
data = db.query("SELECT * FROM data")
return mo.ui.table(data)
-accordion = mo.ui.accordion({
+accordion = mo.accordion({
"Charts": mo.lazy(expensive_component)
})
```
diff --git a/docs/guides/state.md b/docs/guides/state.md
index 36ca8dea7d..e01a3c74dc 100644
--- a/docs/guides/state.md
+++ b/docs/guides/state.md
@@ -62,7 +62,7 @@ But sometimes, you might want interactions to mutate state:
!!! warning "Use reactive execution for uni-directional flow"
If you just want the value of a single element to update another element,
then **you shouldn't use `mo.state`**. Instead, use marimo's built-in
- reactive execution --- see the [interactivity guide](`../guides/interactivity.md`).
+ reactive execution --- see the [interactivity guide](../guides/interactivity.md).
For cases like these, marimo provides the function [`mo.state()`](../api/state.md),
which creates a state object and returns a getter and setter function. When you
diff --git a/marimo/_plugins/stateless/lazy.py b/marimo/_plugins/stateless/lazy.py
index 69e9ee0e8a..b3a2120d27 100644
--- a/marimo/_plugins/stateless/lazy.py
+++ b/marimo/_plugins/stateless/lazy.py
@@ -40,7 +40,7 @@ class lazy(UIElement[bool, bool]):
Create a lazy-loaded accordion:
```python
- accordion = mo.ui.accordion({"Charts": mo.lazy(expensive_component)})
+ accordion = mo.accordion({"Charts": mo.lazy(expensive_component)})
```
Usage with async functions: