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.
Python artificial-intelligencedagdata-sciencedata-visualizationdataflowdeveloper-toolsmachine-learningnotebookspipelinepythonreactivesqlweb-app
[exp]: change to uv add (#4407)
Shahmir Varqhab21f2a826e91
diff --git a/.github/workflows/test_cli.yaml b/.github/workflows/test_cli.yamlindex c7e1b291ad..58b6fa5253 100644--- a/.github/workflows/test_cli.yaml+++ b/.github/workflows/test_cli.yaml@@ -120,7 +120,7 @@ jobs:- name: Install Python depsrun: |- uv pip install pytest pytest-asyncio pytest-timeout nbformat+ uv add pytest pytest-asyncio pytest-timeout nbformat- name: Download wheeluses: actions/download-artifact@v4@@ -161,7 +161,7 @@ jobs:- name: Install Python depsrun: |- uv pip install pytest pytest-asyncio+ uv add pytest pytest-asynciouv pip install marimo*whl- name: Test examplesdiff --git a/docs/getting_started/installation.md b/docs/getting_started/installation.mdindex bcc7ff67a4..84434c6929 100644--- a/docs/getting_started/installation.md+++ b/docs/getting_started/installation.md@@ -48,7 +48,7 @@ pip install marimo/// tab | install with uv```bash-uv pip install marimo+uv add marimo```///@@ -87,7 +87,7 @@ suggest installing `marimo[recommended]`:/// tab | install with pip```bash-pip install marimo[recommended]+pip install "marimo[recommended]"```///@@ -95,7 +95,7 @@ pip install marimo[recommended]/// tab | install with uv```bash-uv pip install marimo[recommended]+uv add "marimo[recommended]"```///diff --git a/docs/getting_started/quickstart.md b/docs/getting_started/quickstart.mdindex a480219708..1db4a27880 100644--- a/docs/getting_started/quickstart.md+++ b/docs/getting_started/quickstart.md@@ -97,7 +97,7 @@ pip install "marimo[recommended]"/// tab | install with uv```bash-uv pip install "marimo[recommended]"+uv add "marimo[recommended]"```///diff --git a/docs/guides/editor_features/language_server.md b/docs/guides/editor_features/language_server.mdindex fc865ff7e7..07ce635cde 100644--- a/docs/guides/editor_features/language_server.md+++ b/docs/guides/editor_features/language_server.md@@ -23,7 +23,7 @@ LSP support requires additional dependencies. You can install them with:```bashpip install "marimo[lsp]"# or-uv add marimo[lsp]+uv add "marimo[lsp]"# orconda install -c conda-forge python-lsp-server python-lsp-ruff```diff --git a/docs/guides/working_with_data/sql.md b/docs/guides/working_with_data/sql.mdindex 41609199fa..32b4817604 100644--- a/docs/guides/working_with_data/sql.md+++ b/docs/guides/working_with_data/sql.md@@ -18,7 +18,7 @@ pip install "marimo[sql]"/// tab | install with uv```bash-uv pip install "marimo[sql]"+uv add "marimo[sql]"```///diff --git a/docs/index.md b/docs/index.mdindex f6af10ded0..904f52f721 100644--- a/docs/index.md+++ b/docs/index.md@@ -36,7 +36,7 @@ pip install marimo && marimo tutorial intro/// tab | install with uv```bash-uv pip install marimo && marimo tutorial intro+uv add marimo && marimo tutorial intro```///diff --git a/docs/integrations/motherduck.md b/docs/integrations/motherduck.mdindex 6bf991001d..091747ed08 100644--- a/docs/integrations/motherduck.md+++ b/docs/integrations/motherduck.md@@ -17,7 +17,7 @@ pip install "marimo[sql]"/// tab | install with uv```bash-uv pip install "marimo[sql]"+uv add "marimo[sql]"```///diff --git a/examples/layouts/slides.py b/examples/layouts/slides.pyindex d77b37ddec..b50af4fb15 100644--- a/examples/layouts/slides.py+++ b/examples/layouts/slides.py@@ -47,7 +47,7 @@ def __(mo):## Installation```bash- uv pip install duckdb+ uv add duckdb```""")diff --git a/frontend/src/core/codemirror/compat/__tests__/jupyter.test.ts b/frontend/src/core/codemirror/compat/__tests__/jupyter.test.tsindex 64a1da9650..65e843b2f8 100644--- a/frontend/src/core/codemirror/compat/__tests__/jupyter.test.ts+++ b/frontend/src/core/codemirror/compat/__tests__/jupyter.test.ts@@ -65,6 +65,19 @@ describe("jupyterHelpExtension", () => {});});+ it("handles uv add command", () => {+ view.dispatch({+ changes: { from: 0, insert: "!uv add" },+ selection: { anchor: 7 },+ });++ expect(store.set).toHaveBeenCalled();+ expect(toast).toHaveBeenCalledWith({+ title: "Package Installation",+ description: expect.any(Object),+ });+ });+it("handles autoreload commands", async () => {// @ts-expect-error eh typescriptstore.get.mockReturnValue({ runtime: {} });diff --git a/frontend/src/core/codemirror/compat/jupyter.tsx b/frontend/src/core/codemirror/compat/jupyter.tsxindex 0e273cd5b2..4ff0248e7a 100644--- a/frontend/src/core/codemirror/compat/jupyter.tsx+++ b/frontend/src/core/codemirror/compat/jupyter.tsx@@ -110,6 +110,26 @@ export function jupyterHelpExtension(): Extension {</>),},+ {+ match: "!uv add",+ onMatch: () => {+ store.set(chromeAtom, (prev) => ({+ ...prev,+ isSidebarOpen: true,+ selectedPanel: "packages",+ }));++ focusPackagesInput();+ },+ title: "Package Installation",+ description: (+ <>+ The package manager sidebar has been opened.+ <br />+ Install packages directly from there instead.+ </>+ ),+ },// Module reload{