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 recommended deps (#2867)

Myles Scolnick488a081f3ed1
diff --git a/docs/getting_started/index.md b/docs/getting_started/index.md
index 2954dc70d3..1f7614e6a6 100644
--- a/docs/getting_started/index.md
+++ b/docs/getting_started/index.md
@@ -143,6 +143,43 @@ auto_instantiate = false
:::
+## Enable more features with optional dependencies
+
+Some features require additional dependencies, which are not installed by default. This includes:
+
+- [SQL cells](/guides/working_with_data/sql.md)
+- Charts in the datasource viewer
+- [AI features](/guides/editor_features/ai_completion.md)
+- Format on save
+
+To install the optional dependencies, run:
+
+::::{tab-set}
+:::{tab-item} install with pip
+
+```bash
+pip install "marimo[recommended]"
+```
+
+:::
+:::{tab-item} install with uv
+
+```bash
+uv pip install "marimo[recommended]"
+```
+
+:::
+:::{tab-item} install with conda
+
+```bash
+conda install -c conda-forge marimo duckdb altair polars openai ruff
+```
+
+:::
+::::
+
+This will install: `duckdb`, `altair`, `polars`, `openai`, and `ruff`.
+
## GitHub Copilot and AI Assistant
The marimo editor natively supports [GitHub Copilot](https://copilot.github.com/),
diff --git a/docs/guides/working_with_data/sql.md b/docs/guides/working_with_data/sql.md
index 798fe26add..c57f1725c8 100644
--- a/docs/guides/working_with_data/sql.md
+++ b/docs/guides/working_with_data/sql.md
@@ -7,10 +7,30 @@ the query result back as a Python dataframe.
To create a SQL cell, you first need to install additional dependencies,
including [duckdb](https://duckdb.org/):
+::::{tab-set}
+:::{tab-item} install with pip
+
+```bash
+pip install "marimo[sql]"
+```
+
+:::
+:::{tab-item} install with uv
+
```bash
-pip install 'marimo[sql]'
+uv pip install "marimo[sql]"
```
+:::
+:::{tab-item} install with conda
+
+```bash
+conda install -c conda-forge marimo duckdb polars
+```
+
+:::
+::::
+
```{admonition} Examples
:class: tip
@@ -18,7 +38,6 @@ For example notebooks, check out
[`examples/sql/` on GitHub](https://github.com/marimo-team/marimo/tree/main/examples/sql/).
```
-
## Example
In this example notebook, we have a Pandas dataframe and a SQL cell
diff --git a/docs/integrations/motherduck.md b/docs/integrations/motherduck.md
index d45cb442b4..d5313f2df1 100644
--- a/docs/integrations/motherduck.md
+++ b/docs/integrations/motherduck.md
@@ -24,7 +24,7 @@ uv pip install "marimo[sql]"
:::{tab-item} install with conda
```bash
-conda install -c conda-forge marimo duckdb
+conda install -c conda-forge marimo duckdb polars
```
:::
diff --git a/pyproject.toml b/pyproject.toml
index 5b142ace38..0cdbc967f7 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -75,7 +75,19 @@ marimo = "marimo._cli.cli:main"
homepage = "https://github.com/marimo-team/marimo"
[project.optional-dependencies]
-sql = ["duckdb >= 1.0.0"]
+sql = [
+ "duckdb >= 1.0.0",
+ "polars >= 1.9.0",
+]
+# List of deps that are recommended for most users
+# in order to unlock all features in marimo
+recommended = [
+ "duckdb>=1.1.0", # SQL cells
+ "altair>=5.4.0", # Plotting in datasource viewer
+ "polars>=1.9.0", # SQL output back in Python
+ "openai>=1.41.1", # AI features
+ "ruff", # Formatting
+]
dev = [
"click <8.1.4", # https://github.com/pallets/click/issues/2558