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.

add uv instructions to docs (#2077)

Akshay Agrawale720054fa26b
diff --git a/docs/getting_started/index.md b/docs/getting_started/index.md
index ecfb38c1ff..995f804e59 100644
--- a/docs/getting_started/index.md
+++ b/docs/getting_started/index.md
@@ -10,8 +10,9 @@ Before installing marimo, we recommend creating and activating a Python
```{dropdown} Setting up a virtual environment
Python uses virtual environments to minimize conflicts among packages.
-Here's a quickstart for `pip` users. If you use `conda`, please use a
-[`conda` environment](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands) instead.
+Here's a quickstart for `pip` users. If you use `conda`, please use a [`conda`
+environment](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands)
+instead.
Run the following in the terminal:
@@ -27,6 +28,15 @@ and altair, in this environment. When you're done, deactivate the environment
with `deactivate` in the terimnal.
Learn more from the [official Python tutorial](https://docs.python.org/3/tutorial/venv.html#creating-virtual-environments).
+
+:::{admonition} Using uv?
+:class: tip
+
+[uv](https://github.com/astral-sh/uv) is a next-generation Python package
+installer and manager that is 10-100x faster than pip, and also makes it easy
+to install Python and manage projects. With `uv`, creating a virtual
+environment is as easy as `uv venv`.
+:::
```
To install marimo, run the following in a terminal:
@@ -38,6 +48,13 @@ To install marimo, run the following in a terminal:
pip install marimo
```
+:::
+:::{tab-item} install with uv
+
+```bash
+uv pip install marimo
+```
+
:::
:::{tab-item} install with conda
diff --git a/docs/index.md b/docs/index.md
index eeabd93368..04ab8c011f 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -24,6 +24,13 @@ notebooks</a>.
pip install marimo && marimo tutorial intro
```
+:::
+:::{tab-item} install with uv
+
+```bash
+uv pip install marimo && marimo tutorial intro
+```
+
:::
:::{tab-item} install with conda