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.

feat: add Lens to optional dependency dialog (#10950)

Péter Gyarmati826edc116da2
diff --git a/frontend/src/components/app-config/optional-features.tsx b/frontend/src/components/app-config/optional-features.tsx
index ad2d3f23bb..cc9602779d 100644
--- a/frontend/src/components/app-config/optional-features.tsx
+++ b/frontend/src/components/app-config/optional-features.tsx
@@ -105,6 +105,12 @@ const OPTIONAL_DEPENDENCIES: OptionalFeature[] = [
additionalPackageInstalls: [],
description: "AI features",
},
+ {
+ id: "lens",
+ packagesRequired: [{ name: "marimo-lens", minVersion: "0.2.0" }],
+ additionalPackageInstalls: [],
+ description: "Select outputs for agents",
+ },
{
id: "mcp",
packagesRequired: [{ name: "mcp", minVersion: "2.0.0" }],
diff --git a/pyproject.toml b/pyproject.toml
index 55ebb7a185..6917c07f49 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -104,7 +104,7 @@ sandbox = [
recommended = [
"marimo[sql]",
"marimo[sandbox]", # For `marimo edit --sandbox DIRECTORY`
- "marimo-lens>=0.1.2", # Inspect and select notebook outputs
+ "marimo-lens>=0.2.0", # Inspect and select notebook outputs
"cryptography>=42.0.0", # Ed25519 signing of persistent cache manifests
"altair>=5.4.0", # Plotting in datasource viewer
"pydantic-ai-slim[openai]>=1.107.0,<3.0.0", # AI features
@@ -308,7 +308,7 @@ docs = [
# Mirror CI's dependency window (UV_EXCLUDE_NEWER in .github/workflows) so local
# resolution reproduces what CI resolves at setup time, including the ruff version.
exclude-newer = "7 days"
-exclude-newer-package = { marimo-lens = false }
+exclude-newer-package = { agent-plugins = false, marimo-lens = false }
[tool.uv.sources]
marimo_docs = { path = "./docs", editable = true }
diff --git a/tests/snapshots/optional-dependencies-recommended.txt b/tests/snapshots/optional-dependencies-recommended.txt
index 12aa3fcf80..d20b202daf 100644
--- a/tests/snapshots/optional-dependencies-recommended.txt
+++ b/tests/snapshots/optional-dependencies-recommended.txt
@@ -1,6 +1,6 @@
altair>=5.4.0
cryptography>=42.0.0
-marimo-lens>=0.1.2
+marimo-lens>=0.2.0
marimo[sandbox]
marimo[sql]
nbformat>=5.7.0