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.

chore: add more deps to `marimo env` (#4543)

Myles Scolnick33df436ae1aa
diff --git a/marimo/_utils/health.py b/marimo/_utils/health.py
index eb8f1f2774..5bb3022c55 100644
--- a/marimo/_utils/health.py
+++ b/marimo/_utils/health.py
@@ -6,6 +6,10 @@ import subprocess
import sys
from typing import Optional
+from marimo import _loggers
+
+LOGGER = _loggers.marimo_logger()
+
def get_node_version() -> Optional[str]:
try:
@@ -36,7 +40,6 @@ def get_required_modules_list() -> dict[str, str]:
"pygments",
"pymdown-extensions",
"pyyaml",
- "ruff",
"starlette",
"tomlkit",
"typing-extensions",
@@ -53,10 +56,19 @@ def get_optional_modules_list() -> dict[str, str]:
"anywidget",
"duckdb",
"ibis-framework",
+ "nbformat",
+ "openai",
"opentelemetry",
"pandas",
"polars",
"pyarrow",
+ "pycrdt",
+ "pylsp-mypy",
+ "pytest",
+ "python-lsp-ruff",
+ "python-lsp-server",
+ "ruff",
+ "sqlglot",
]
return _get_versions(packages, include_missing=False)
@@ -144,6 +156,9 @@ def get_chrome_version() -> Optional[str]:
return None
except FileNotFoundError:
return None
+ except Exception as e:
+ LOGGER.error(f"An error occurred: {e}")
+ return None
def get_python_version() -> str: