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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
docs: fix some deprecated links, old components (#3552)
Shahmir Varqhab36593cabaf4
diff --git a/docs/api/status.md b/docs/api/status.mdindex 0186632bdf..499728e139 100644--- a/docs/api/status.md+++ b/docs/api/status.md@@ -15,7 +15,7 @@ to `tqdm`.```python@app.celldef __():- rerun = mo.ui.button("Rerun")+ rerun = mo.ui.button(label="Rerun")rerunreturn@@ -46,7 +46,7 @@ async def __():```python@app.celldef __():- rerun = mo.ui.button("Rerun")+ rerun = mo.ui.button(label="Rerun")rerunreturndiff --git a/docs/guides/expensive_notebooks.md b/docs/guides/expensive_notebooks.mdindex 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.mdindex 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 youdiff --git a/marimo/_plugins/stateless/lazy.py b/marimo/_plugins/stateless/lazy.pyindex 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: