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: add a video for lazy execution (#5890)

Akshay Agrawalc2d174f69690
diff --git a/docs/_static/docs-lazy-execution.mp4 b/docs/_static/docs-lazy-execution.mp4
new file mode 100644
index 0000000000..6418777cc7
Binary files /dev/null and b/docs/_static/docs-lazy-execution.mp4 differ
diff --git a/docs/guides/configuration/runtime_configuration.md b/docs/guides/configuration/runtime_configuration.md
index 73eae234ff..b5074c7726 100644
--- a/docs/guides/configuration/runtime_configuration.md
+++ b/docs/guides/configuration/runtime_configuration.md
@@ -1,11 +1,11 @@
# Runtime configuration
-Through the notebook settings menu, you can configure how and when marimo
-runs cells.
+Through the notebook settings menu, you can configure how and when marimo runs
+cells.
<video controls width="100%" height="100%" align="center" src="/_static/docs-runtime-config.mp4"> </video>
-## On startup
+## Disable autorun on startup
By default, marimo notebooks run automatically on startup; just how the command
@@ -26,7 +26,9 @@ Disable this behavior by unchecking "Autorun on startup".
_When sharing a notebook as an app with `marimo run`, this setting has
no effect._
-## On cell change
+## Disable autorun on cell change (lazy execution)
+
+<video controls width="100%" height="100%" align="center" src="/_static/docs-lazy-execution.mp4"> </video>
By default, when a cell is run or a UI element is interacted with, marimo
automatically runs cells that reference any of its variables. **You can disable
diff --git a/docs/guides/expensive_notebooks.md b/docs/guides/expensive_notebooks.md
index 39b030e2bd..ce1d34a971 100644
--- a/docs/guides/expensive_notebooks.md
+++ b/docs/guides/expensive_notebooks.md
@@ -45,7 +45,7 @@ def __():
If you habitually work with very expensive notebooks, you can
[disable automatic
-execution](../guides/configuration/runtime_configuration.md#on-cell-change). When
+execution](../guides/configuration/runtime_configuration.md#disable-autorun-on-cell-change-lazy-execution). When
automatic execution is disabled, when you run a cell, marimo
marks dependent cells as stale instead of running them automatically.