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.

fix: Add script dependencies to data_editor example (#8867)

Tom Neepb96584aab36a
diff --git a/examples/ui/data_editor.py b/examples/ui/data_editor.py
index 2d61c4e366..91cc3b6a3a 100644
--- a/examples/ui/data_editor.py
+++ b/examples/ui/data_editor.py
@@ -1,3 +1,10 @@
+# /// script
+# requires-python = ">=3.12"
+# dependencies = [
+# "polars==1.39.3",
+# "vega-datasets==0.9.0",
+# ]
+# ///
import marimo
__generated_with = "0.19.7"