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.

improve: example installation instructions (#3265)

Akshay Agrawal1a1db277543d
diff --git a/examples/README.md b/examples/README.md
index cb1eb40d85..960f96bff8 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -32,22 +32,23 @@ use marimo's features as well as inspire you to make awesome notebooks.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook-url>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `marimo edit --sandbox <notebook-url>`.
For example:
```bash
-marimo edit --sandbox https://github.com/marimo-team/marimo/blob/main/examples/ui/reactive_plots.py
+uvx marimo edit --sandbox https://github.com/marimo-team/marimo/blob/main/examples/misc/seam_carving.py
```
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook.py>`; however, you'll also need to
+install the requirements yourself.
## More examples 🌟
diff --git a/examples/ai/README.md b/examples/ai/README.md
index b00aff5249..43f583af90 100644
--- a/examples/ai/README.md
+++ b/examples/ai/README.md
@@ -16,13 +16,14 @@ These examples showcase a few simple applications of AI.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.
diff --git a/examples/cloud/README.md b/examples/cloud/README.md
index c217decdbb..e3cca98e3f 100644
--- a/examples/cloud/README.md
+++ b/examples/cloud/README.md
@@ -11,13 +11,14 @@ These examples show how to use various cloud provider APIs.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.
diff --git a/examples/control_flow/README.md b/examples/control_flow/README.md
index 57d3cf205d..3c99255f71 100644
--- a/examples/control_flow/README.md
+++ b/examples/control_flow/README.md
@@ -14,13 +14,14 @@ examples folder_.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.
diff --git a/examples/layouts/README.md b/examples/layouts/README.md
index df0e817b3f..b1248f2e28 100644
--- a/examples/layouts/README.md
+++ b/examples/layouts/README.md
@@ -14,13 +14,14 @@ adding sidebars.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.
diff --git a/examples/markdown/README.md b/examples/markdown/README.md
index a1e3ebe732..cacc689da2 100644
--- a/examples/markdown/README.md
+++ b/examples/markdown/README.md
@@ -11,13 +11,14 @@ These basic examples show how to use write markdown in marimo.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.
diff --git a/examples/misc/README.md b/examples/misc/README.md
index 6e924c6614..adf5868f57 100644
--- a/examples/misc/README.md
+++ b/examples/misc/README.md
@@ -11,9 +11,8 @@ A hodgepodge of examples!
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook.py>`.
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
diff --git a/examples/sql/README.md b/examples/sql/README.md
index b9c19611c4..5d3d3887d8 100644
--- a/examples/sql/README.md
+++ b/examples/sql/README.md
@@ -28,14 +28,14 @@ comprehensive guide on duckdb.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook-url>`.
-
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.
diff --git a/examples/third_party/README.md b/examples/third_party/README.md
index 88546c2950..1145bb14ab 100644
--- a/examples/third_party/README.md
+++ b/examples/third_party/README.md
@@ -11,13 +11,14 @@ These examples showcase how to use various third-party packages in marimo.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.
diff --git a/examples/ui/README.md b/examples/ui/README.md
index 2e4b6079f7..cc85ed536d 100644
--- a/examples/ui/README.md
+++ b/examples/ui/README.md
@@ -14,13 +14,14 @@ examples folder_.
The requirements of each notebook are serialized in them as a top-level
comment. Here are the steps to open an example notebook:
-1. [Install marimo](https://docs.marimo.io/getting_started/index.html#installation)
-2. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
-3. Open an example with `marimo edit --sandbox <notebook.py>`.
+1. [Install `uv`](https://github.com/astral-sh/uv/?tab=readme-ov-file#installation)
+2. Open an example with `uvx marimo edit --sandbox <notebook-url>`
> [!TIP]
> The [`--sandbox` flag](https://docs.marimo.io/guides/editor_features/package_management.html) opens the notebook in an isolated virtual environment,
> automatically installing the notebook's dependencies 📦
-You can also open notebooks without `uv`, with just `marimo edit <notebook.py>`;
-however, you'll need to install the requirements yourself.
+You can also open notebooks without `uv`, in which case you'll need to
+manually [install marimo](https://docs.marimo.io/getting_started/index.html#installation)
+first. Then run `marimo edit <notebook-url>`; however, you'll also need to
+install the requirements yourself.