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
Replace hatch env layer with native uv commands (#8510)
Trevor Manz707e285783ac
diff --git a/.github/workflows/release-prod.yml b/.github/workflows/release-prod.ymlindex 3c72326a88..aab0fb786a 100644--- a/.github/workflows/release-prod.yml+++ b/.github/workflows/release-prod.yml@@ -39,8 +39,11 @@ jobs:- name: 🥚 Install Hatchuses: pypa/hatch@install+ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v7+- name: 📦 Build marimo- run: hatch build+ run: uv build- name: 📦 Upload marimo dist artifactuses: actions/upload-artifact@v6@@ -52,7 +55,7 @@ jobs:- name: 🔨 Get versionid: get_versionrun: |- echo "marimo_version=$(hatch version)" >> $GITHUB_OUTPUT+ echo "marimo_version=$(uv version --short)" >> $GITHUB_OUTPUT- name: 📦 Update package.json version from CLIworking-directory: frontenddiff --git a/.github/workflows/test_be.yaml b/.github/workflows/test_be.yamlindex dcaa27d9dd..0462dfce25 100644--- a/.github/workflows/test_be.yaml+++ b/.github/workflows/test_be.yaml@@ -44,19 +44,19 @@ jobs:- name: ⬇️ Checkout repouses: actions/checkout@v4- - name: ⬇️ Install Hatch- uses: pypa/hatch@install+ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v7- name: 📚 Build docsid: docs- run: hatch run docs:build --strict+ run: uv run --group docs mkdocs build --strict- name: Comment on docs failureif: failure() && steps.docs.outcome == 'failure'uses: ./.github/actions/pr-comment-on-failurewith:check-name: "docs build"- command: "hatch run docs:build --strict"+ command: "uv run --group docs mkdocs build --strict"github-token: ${{ secrets.GITHUB_TOKEN }}test_check:@@ -68,23 +68,23 @@ jobs:- name: ⬇️ Checkout repouses: actions/checkout@v4- - name: 🥚 Install Hatch- uses: pypa/hatch@install+ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v7- name: 🧹 Lintid: lint- run: hatch run lint+ run: uv run ruff check --fix- name: 🔍 Typecheckid: typecheck- run: hatch run typecheck:check+ run: uv run --only-group typecheck mypy marimo --exclude=marimo/_tutorials/- name: Comment on lint failureif: failure() && steps.lint.outcome == 'failure'uses: ./.github/actions/pr-comment-on-failurewith:check-name: "lint"- command: "hatch run lint"+ command: "uv run ruff check --fix"github-token: ${{ secrets.GITHUB_TOKEN }}- name: Comment on typecheck failure@@ -92,7 +92,7 @@ jobs:uses: ./.github/actions/pr-comment-on-failurewith:check-name: "typecheck"- command: "hatch run typecheck:check"+ command: "uv run --only-group typecheck mypy marimo --exclude=marimo/_tutorials/"github-token: ${{ secrets.GITHUB_TOKEN }}# For PRs, we only run the tests for the changed files.@@ -146,8 +146,8 @@ jobs:with:fetch-depth: 0 # Fetch all history for git diff- - name: 🥚 Install Hatch- uses: pypa/hatch@install+ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v7# This step is needed since some of our tests rely on the index.html file- name: Create assets directory, copy over index.html@@ -187,7 +187,7 @@ jobs:- name: Test changed with base dependenciesif: ${{ matrix.dependencies == 'core' }}run: |- hatch run +py=${{ matrix.python-version }} test:test tests/ \+ uv run --python ${{ matrix.python-version }} --group test pytest tests/ \-v \-k "not test_cli" \--durations=10 \@@ -201,7 +201,7 @@ jobs:- name: Test changed with optional dependenciesif: ${{ matrix.dependencies == 'core,optional' }}run: |- hatch run +py=${{ matrix.python-version }} test-optional:test tests/ \+ uv run --python ${{ matrix.python-version }} --group test-optional pytest tests/ \-v \-k "not test_cli" \--durations=10 \@@ -217,7 +217,7 @@ jobs:- name: Test with minimal dependencies (lowest resolution)if: ${{ matrix.dependencies == 'minimal' }}run: |- hatch run +py=${{ matrix.python-version }} test:test tests/ \+ uv run --python ${{ matrix.python-version }} --group test pytest tests/ \-v \-k "not test_cli" \--durations=10 \@@ -227,7 +227,7 @@ jobs:--picked=first \|| { ec=$?; [ $ec -eq 5 ] && exit 0 || exit $ec; }env:- UV_RESOLUTION: lowest+ UV_RESOLUTION: lowest-direct# Only run coverage on `main` so it is not blockingtest_coverage:@@ -239,8 +239,8 @@ jobs:steps:- uses: actions/checkout@v4- - name: 🥚 Install Hatch- uses: pypa/hatch@install+ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v7# This step is needed since some of our tests rely on the index.html file- name: Create assets directory, copy over index.html@@ -251,7 +251,7 @@ jobs:- name: Test with optional dependenciesrun: |- hatch run +py=3.13 test-optional:test \+ uv run --group test-optional pytest \-v \tests/ \-k "not test_cli" \diff --git a/.github/workflows/test_cli.yaml b/.github/workflows/test_cli.yamlindex 2c07ae8b5c..7516544ebd 100644--- a/.github/workflows/test_cli.yaml+++ b/.github/workflows/test_cli.yaml@@ -53,11 +53,11 @@ jobs:turbo-token: ${{ secrets.TURBO_TOKEN }}codecov-token: ${{ secrets.CODECOV_TOKEN }}- - name: 🥚 Install Hatch- uses: pypa/hatch@install+ - name: 🐍 Setup uv+ uses: astral-sh/setup-uv@v7- name: 📦 Build marimo wheel- run: hatch build -t wheel+ run: uv build --wheel- name: Check for _static/_lsp directory in wheelrun: |@@ -152,7 +152,7 @@ jobs:shell: bashrun: |uv venv- uv pip install --group=test-optional --group=test --group=dev marimo*.whl+ uv pip install --group=test-optional --group=dev marimo*.whluv run --no-project pytest -v tests/_cli/test_cli* --maxfail=2test_examples:diff --git a/AGENTS.md b/AGENTS.mdindex 6428d0ba04..1f2cd8b026 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -32,8 +32,9 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed setup options.```bash# Pythonmake py-check # Typecheck and lint Python-uvx hatch run +py=3.12 test:test tests/path/to/test.py-uvx hatch run +py=3.12 test-optional:test tests/path/to/test.py # with optional deps+uv run --group test pytest tests/path/to/test.py+uv run --group test-optional pytest tests/path/to/test.py # with optional deps+uv run --group test --python 3.11 pytest tests/path/to/test.py # specific python version# Frontendmake fe-check # Typecheck and lint frontenddiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex df3ed83c32..5f3e710b43 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -20,56 +20,26 @@ contribution._ Get in touch ator [on Discord](https://marimo.io/discord?ref=contributing).## Setup-_Note: We recommend that Windows developers use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) and clone the marimo repository [into the WSL environment and not the Windows mount](https://learn.microsoft.com/en-us/windows/wsl/filesystems)._--Install [pixi](https://github.com/prefix-dev/pixi) to manage your development environment. The following command uses `pixi` to launch a development shell with all dependencies installed, using `hatch` as the environment manager.--> [!NOTE]->-> As an alternative to installing `pixi`, you can try developing in [Gitpod](https://gitpod.io/#https://github.com/marimo-team/marimo).-> Note that developing in Gitpod is not officially supported by the marimo team.--> [!TIP]-> New to both `pixi` and `hatch`? Pick `pixi`. It installs and manages both the Python and Node toolchains, then drops you into a ready shell with one command. Choose `hatch` only if you already maintain Node 20+/pnpm 9+ yourself and just want a Python environment manager. Typical flows:-> - `pixi shell` → `make fe && make py` → `make dev`-> - `hatch shell` → `make fe && make py` → `make dev`--```bash-pixi shell-```--If you have the right non-python dependencies installed via other methods (e.g. homebrew) you can simply activate your `marimo` development-environment with `hatch shell`.-Now you can install the environment frontend and Python dependencies.--```bash-make fe && make py-```--After doing this, you can instantiate your marimo development environment by running the following command.+_Note: We recommend that Windows developers use [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) and clone the marimo repository [into the WSL environment and not the Windows mount](https://learn.microsoft.com/en-us/windows/wsl/filesystems)._-```bash-make dev-```+### Prerequisites-This will launch two processes, the backend one in port 2718 and the front end one in port 3000.+- [uv](https://docs.astral.sh/uv/getting-started/installation/) (Python package manager)+- [Node.js](https://nodejs.org/) 20++- [pnpm](https://pnpm.io/installation) 9+-In summary you will need to run:+### Getting started```bash-pixi shellmake fe && make pymake dev```-or if not using `pixi`:+This will build the frontend, install Python dependencies in editable mode, and launch the dev server (backend on port 2718, frontend on port 3000).-```bash-hatch shell-make fe && make py-make dev-```+> [!TIP]+> On the marimo team we use `uv` + `node`/`pnpm` directly. Alternatively, [pixi](https://github.com/prefix-dev/pixi) can manage the Python and Node toolchains for you (`pixi shell` then proceed as above), and [Gitpod](https://gitpod.io/#https://github.com/marimo-team/marimo) provides a cloud-based dev environment — but we don't officially support either of these and recommend the setup above.### `pre-commit` hooks@@ -79,12 +49,6 @@ You can optionally install [pre-commit](https://pre-commit.com/) hooks to automauvx pre-commit install```-or--```bash-pixi run pre-commit install-```-To build the frontend unminified, run:```bash@@ -139,16 +103,16 @@ make fe-check<table><tr><th>Using <code>make</code></th>- <th>Using <code>hatch</code></th>+ <th>Using <code>uv</code></th></tr><tr><td><pre><code>make py-check </code></pre></td><td>- <pre><code>hatch run lint-hatch run format-hatch run typecheck:check </code></pre>+ <pre><code>uv run ruff check --fix+uv run ruff format+uv run --only-group typecheck mypy marimo --exclude=marimo/_tutorials/</code></pre></td></tr></table>@@ -186,38 +150,24 @@ We use [pytest syntax](https://docs.pytest.org/en/stable/how-to/usage.html) formake py-test```-#### Using Hatch+#### Using uvRun a specific test```bash-hatch run +py=3.13 test:test tests/_ast/+uv run --python 3.13 --group test pytest tests/_ast/```Run all changed tests```bash-hatch run +py=3.13 test:test --picked+uv run --python 3.13 --group test pytest --picked```Run tests with optional dependencies```bash-hatch run +py=3.13 test-optional:test tests/_ast/-```--Run tests across all Python versions (omit `+py`)--```bash-hatch run test:test tests/_ast/-```--Run all tests across all Python versions--Not recommended since it takes a long time.--```bash-hatch run test:test+uv run --python 3.13 --group test-optional pytest tests/_ast/```### End-to-enddiff --git a/Makefile b/Makefileindex af4c6d2426..be56c4ec74 100644--- a/Makefile+++ b/Makefile@@ -1,7 +1,6 @@# Makefile for marimo - Development and build tasks# Prerequisites:-# - hatch: for environment permutations management and testing-# - uv: for Python dependency management+# - uv: for Python dependency management, testing, and building# - pnpm: for frontend development# - Node.js: for frontend development@@ -26,7 +25,6 @@ check-prereqs:@command -v pnpm >/dev/null 2>&1 || { echo "pnpm is required. See https://pnpm.io/installation"; exit 1; }@pnpm -v | grep -vq "^[0-8]\." || { echo "pnpm v9+ is required. Current version: $(shell pnpm -v)"; exit 1; }@command -v uv >/dev/null 2>&1 || { echo "uv is required. See https://docs.astral.sh/uv/getting-started/installation/"; exit 1; }- @command -v hatch >/dev/null 2>&1 || { echo "hatch is required. See https://hatch.pypa.io/dev/install/"; exit 1; }@command -v node >/dev/null 2>&1 || { echo "Node.js is required. See https://nodejs.org/en/download/"; exit 1; }@node -v | grep -q "v2[0-9]" || { echo "Node.js v20+ is required. Current version: $(shell node -v)"; exit 1; }@echo "✅ All prerequisites are installed!"@@ -96,7 +94,7 @@ e2e:.PHONY: fe-lint# 🧹 Lint frontendfe-lint:- cd frontend/src && hatch run typos && cd - && pnpm --filter @marimo-team/frontend lint+ cd frontend/src && uv run typos && cd - && pnpm --filter @marimo-team/frontend lint.PHONY: fe-typecheck# 🔍 Typecheck frontend@@ -106,7 +104,7 @@ fe-typecheck:.PHONY: fe-codegen# 🔄 Generate frontend APIfe-codegen:- uv run --python=3.12 ./marimo development openapi > packages/openapi/api.yaml+ uv run ./marimo development openapi > packages/openapi/api.yamlpnpm run codegenpnpm format packages/openapi/@@ -118,18 +116,26 @@ py-check:.PHONY: typos# 🔍 Check for typostypos:- hatch run typos+ uv run typos.PHONY: py-test# 🧪 Test pythonpy-test:- uvx hatch run typos+ uv run typos./scripts/pytest.sh --optional $(ARGS)+.PHONY: py-test-narwhals+# 🧪 Test narwhals-related tests (used externally by narwhals repo)+py-test-narwhals:+ uv run --group test pytest \+ tests/_data/ \+ tests/_plugins/ui/_impl/ \+ tests/_utils/test_narwhals_utils.py+.PHONY: py-snapshots# 📸 Update snapshotspy-snapshots:- hatch run +py=3.12 test:test \+ uv run --group test pytest \tests/_server/templates/test_templates.py \tests/_server/api/endpoints/test_export.py \tests/test_api.py@@ -141,7 +147,7 @@ py-snapshots:.PHONY: wheel# 📦 Build wheelwheel:- hatch build+ uv build#################@@ -151,12 +157,12 @@ wheel:.PHONY: docs# 📚 Build docsdocs:- hatch run docs:build+ uv run --group docs mkdocs build.PHONY: docs-serve# 📚 Serve docsdocs-serve:- hatch run docs:serve+ uv run --group docs mkdocs serve --clean.PHONY: storybook# 🧩 Start Storybook for UI developmentdiff --git a/dagger/src/main/backend.py b/dagger/src/main/backend.pyindex d3df1fef52..96d7a02b6f 100644--- a/dagger/src/main/backend.py+++ b/dagger/src/main/backend.py@@ -32,8 +32,18 @@ class Backend:]).with_exec(["make", "py"])- .with_exec(["hatch", "run", "lint"])- .with_exec(["hatch", "run", "typecheck:check"])+ .with_exec(["uv", "run", "ruff", "check", "--fix"])+ .with_exec(+ [+ "uv",+ "run",+ "--only-group",+ "typecheck",+ "mypy",+ "marimo",+ "--exclude=marimo/_tutorials/",+ ]+ ))await env.sync()diff --git a/development_docs/adding_backend_and_mcp_tools.md b/development_docs/adding_backend_and_mcp_tools.mdindex 0e02b76c1a..8e604fb5dd 100644--- a/development_docs/adding_backend_and_mcp_tools.md+++ b/development_docs/adding_backend_and_mcp_tools.md@@ -425,13 +425,13 @@ Run tests:---```bash# Run all tool tests-hatch run +py=3.12 test:test tests/_ai/tools+uv run --python 3.12 --group test pytest tests/_ai/tools# Run your specific test-hatch run +py=3.12 test:test tests/_ai/tools/tools/test_your_tool.py+uv run --python 3.12 --group test pytest tests/_ai/tools/tools/test_your_tool.py# Run with verbose output-hatch run +py=3.12 test:test tests/_ai/tools/tools/test_your_tool.py -v+uv run --python 3.12 --group test pytest tests/_ai/tools/tools/test_your_tool.py -v```---diff --git a/development_docs/adding_lint_rules.md b/development_docs/adding_lint_rules.mdindex fb690f2b72..6e49c29b7d 100644--- a/development_docs/adding_lint_rules.md+++ b/development_docs/adding_lint_rules.md@@ -274,13 +274,13 @@ This will create:```bash# Run lint tests-uv run hatch run test:test tests/_lint+uv run --group test pytest tests/_lint# Run your specific test-uv run hatch run test:test tests/_lint/test_your_rule.py+uv run --group test pytest tests/_lint/test_your_rule.py# Update snapshots if needed-uv run hatch run test:test tests/_lint/test_snapshots.py --snapshot-update+uv run --group test pytest tests/_lint/test_snapshots.py --snapshot-update```## Rule Implementation Guidelinesdiff --git a/development_docs/prompts.md b/development_docs/prompts.mdindex 6e22001cc3..a9f1d4723d 100644--- a/development_docs/prompts.md+++ b/development_docs/prompts.md@@ -9,5 +9,5 @@ Prompts are generated using the `Prompter` class in `marimo/_server/ai/prompts.pYou can create snapshots of the prompts using the `snapshot` function in `tests/_server/ai/test_prompts.py`. These snapshots are checked into the repo, and you can use them to verify that the prompts have not changed. To run these snapshots, run:```bash-hatch run +py=3.12 test-optional:test tests/_server/ai/test_prompts.py+uv run --python 3.12 --group test-optional pytest tests/_server/ai/test_prompts.py```diff --git a/development_docs/pyodide.md b/development_docs/pyodide.mdindex 342fca9f7c..5894af8811 100644--- a/development_docs/pyodide.md+++ b/development_docs/pyodide.md@@ -11,7 +11,7 @@ PYODIDE=true VITE_WASM_MARIMO_PREBUILT_WHEEL=true pnpm dev```bash# build once-hatch build+uv build# server and watch for changesuv run pyodide/build_and_serve.py# in another terminaldiff --git a/development_docs/testing.md b/development_docs/testing.mdindex 639506a609..f1ccd6d871 100644--- a/development_docs/testing.md+++ b/development_docs/testing.md@@ -37,6 +37,6 @@ Available in `tests/conftest.py`:## Running Tests```bash-uvx hatch run +py=3.12 test:test tests/path/to/test.py-uvx hatch run +py=3.12 test-optional:test tests/path/to/test.py # with optional deps+uv run --python 3.12 --group test pytest tests/path/to/test.py+uv run --python 3.12 --group test-optional pytest tests/path/to/test.py # with optional deps```diff --git a/marimo/AGENTS.md b/marimo/AGENTS.mdindex d6cf45e226..a52d44b9b2 100644--- a/marimo/AGENTS.md+++ b/marimo/AGENTS.md@@ -5,8 +5,9 @@Tests live in `tests/` folder, mirroring `marimo/` structure.```bash-uvx hatch run +py=3.12 test:test tests/path/to/test.py-uvx hatch run +py=3.12 test-optional:test tests/path/to/test.py # with optional deps+uv run --group test pytest tests/path/to/test.py+uv run --group test-optional pytest tests/path/to/test.py # with optional deps+uv run --group test --python 3.11 pytest tests/path/to/test.py # specific python version```We should utilize inline-snapshots more often to verify the outputs of objects, functions, etc.diff --git a/marimo/_utils/format_signature.py b/marimo/_utils/format_signature.pyindex 1a3dc3b525..07e769582a 100644--- a/marimo/_utils/format_signature.py+++ b/marimo/_utils/format_signature.py@@ -7,7 +7,7 @@ import textwrapdef format_signature(prefix: str, signature_text: str, width: int = 39) -> str:black_installed = Falsetry:- import black+ import black # type: ignore[import-not-found]black_installed = Trueexcept ModuleNotFoundError:@@ -39,7 +39,7 @@ def format_signature(prefix: str, signature_text: str, width: int = 39) -> str:formatted = formatted.rsplit("\n", 1)[0].rstrip()if formatted.endswith(":"):formatted = formatted[:-1]- return formatted+ return formatted # type: ignore[no-any-return]except Exception:passdiff --git a/marimo/_utils/formatter.py b/marimo/_utils/formatter.pyindex 2c9a5b83a0..649568a35d 100644--- a/marimo/_utils/formatter.py+++ b/marimo/_utils/formatter.py@@ -158,7 +158,7 @@ class BlackFormatter(Formatter):del stdin_filenameDependencyManager.black.require("to enable code formatting")- import black+ import black # type: ignore[import-not-found]formatted_codes: CellCodes = {}for key, code in codes.items():diff --git a/packages/pytest_changed/README.md b/packages/pytest_changed/README.mdindex 4a073ecbd8..84ae89c66f 100644--- a/packages/pytest_changed/README.md+++ b/packages/pytest_changed/README.md@@ -14,10 +14,10 @@ This plugin analyzes your git changes and uses Ruff's dependency graph analysispytest -p packages.pytest_changed --changed-from=main```-**Using Hatch:**+**Using uv:**```bash-hatch run +py=3.12 test:test -p packages.pytest_changed --changed-from=main tests/+uv run --python 3.12 --group test pytest -p packages.pytest_changed --changed-from=main tests/```### Compare Against Different Referencesdiff --git a/pyproject.toml b/pyproject.tomlindex 179b18f9a4..dc4f6b96bb 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -116,8 +116,8 @@ mcp = [[dependency-groups]dev = [- "hatch>=1.16.3",- "black~=23.12.1",+ # Typo checking+ "typos~=1.23.6",# For tracing debugging"opentelemetry-api~=1.28.0","opentelemetry-sdk~=1.28.0",@@ -156,6 +156,7 @@ test = []test-optional = [+ {include-group = "test"},# For testing ADBC driver-based SQL connections"adbc_driver_manager","adbc_driver_sqlite",@@ -184,7 +185,7 @@ test-optional = ["duckdb>=1.0.0","ibis-framework[duckdb]>=10.3.0",# For testing mo.image- "pillow~=10.4.0",+ "pillow~=12.0.0","anywidget~=0.9.21","ipython~=8.12.3",# testing gen ai@@ -211,34 +212,7 @@ test-optional = ["basedpyright>=1.28.0",]--[tool.hatch]-installer = "uv"--# Override the default uv version to use the latest version-[tool.hatch.envs.hatch-uv]-dependencies = ["uv>=0.9.21"]--[tool.hatch.envs.default]-dependency-groups = ["dev"]-python = "3.12"-installer = "uv"-dependencies = [- "uv>=0.9.21", # so we can bump the version used by hatch- # Typo checking- "typos~=1.23.6",-]--[tool.hatch.envs.default.scripts]-lint = "ruff check --fix"-lint-unsafe = "ruff check --fix --unsafe-fixes"-format = "ruff format"--[tool.hatch.envs.typecheck]-python = "3.12"-installer = "uv"-dependency-groups = ["dev"]-dependencies = [+typecheck = ["mypy~=1.15.0",# Types for mypy"altair>=5.4.0",@@ -271,42 +245,8 @@ dependencies = ["pyarrow-stubs",]-[tool.hatch.envs.typecheck.scripts]-# tutorials shouldn't be type-checked (should be excluded), but they get-# included due to import following; so ensure tutorial imports are type-# ignored.-check = "mypy marimo --exclude=marimo/_tutorials/"-tutorials = "mypy marimo/_tutorials"--[tool.hatch.envs.test]-dependency-groups = ["test"]--[[tool.hatch.envs.test.matrix]]-python = ["3.10", "3.11", "3.12", "3.13", "3.14"]--[tool.hatch.envs.test.scripts]-test = "pytest{env:HATCH_TEST_ARGS:} {args:tests}"-default = "pytest{env:HATCH_TEST_ARGS:} {args:tests}"-# This is used externally from the narwhals repo to run our tests from their repo.-# This should include any tests that may use narwhals.-# It is ok if we test more than narwhals here, but we should not test less.-test-narwhals = """- pytest{env:HATCH_TEST_ARGS:} \- tests/_data/ \- tests/_plugins/ui/_impl/ \- tests/_utils/test_narwhals_utils.py-"""--[tool.hatch.envs.test-optional]-template = "test"-dependency-groups = ["dev", "test", "test-optional"]--[[tool.hatch.envs.test-optional.matrix]]-python = ["3.10", "3.11", "3.12", "3.13", "3.14"]--[tool.hatch.envs.docs]-dependencies = [- "marimo_docs @ file://docs",+docs = [+ "marimo_docs","ruff>=0.14.0,<0.15.2", # TODO: remove upper bound once we fix the ruff issues"mkdocs>=1.6.1",# Live reloading broken in >= 9.6.21: https://github.com/squidfunk/mkdocs-material/issues/8478@@ -328,6 +268,7 @@ dependencies = ["lzstring>=1.0.4",]+[tool.uv.sources]marimo_docs = { path = "./docs", editable = true }@@ -337,11 +278,6 @@ module-root = ""source-include = ["third_party.txt", "third_party_licenses.txt"]wheel-exclude = ["marimo/_smoke_tests/**"]-[tool.hatch.envs.docs.scripts]-build = "mkdocs build {args}"-serve = "mkdocs serve --clean {args}"-deploy = "mkdocs gh-deploy --force {args}"-[tool.ruff]line-length = 79target-version = "py39"@@ -565,8 +501,6 @@ extend-exclude = ["tests/_sql/test_sql_parse.py", # Contains intentional invalid SQL for testing]-[tool.black]-line-length = 79[tool.marimo.ai]rules = "- prefer polars over pandas\n- make charts using altair"diff --git a/scripts/pycheck.sh b/scripts/pycheck.shindex 116c1946fa..694caaf205 100755--- a/scripts/pycheck.sh+++ b/scripts/pycheck.sh@@ -1,14 +1,14 @@#!/bin/shecho "[check: typos]"-uvx hatch run typos -w+uv run typos -wecho "[check: copyright]"./scripts/pycopyright.shecho "[check: lint]"-uvx hatch run ruff check --fix+uv run ruff check --fixecho "[check: format]"-uvx hatch run ruff format+uv run ruff formatecho "[check: typecheck]"-uvx hatch run typecheck:check+uv run --only-group typecheck mypy marimo --exclude=marimo/_tutorials/echo "[check: update-lock]"-uvx hatch run pixi lock+uv run pixi lockdiff --git a/scripts/pytest-changed.sh b/scripts/pytest-changed.shnew file mode 100755index 0000000000..c15a7357d8--- /dev/null+++ b/scripts/pytest-changed.sh@@ -0,0 +1,98 @@+#!/bin/bash+set -e++usage() {+ echo "Usage: $0 [--python VERSION] [--group GROUP] [--from REF] [-- PYTEST_ARGS...]"+ echo ""+ echo "Run pytest on changed files across a matrix of Python versions."+ echo ""+ echo "Options:"+ echo " --python VERSION Run with a single Python version instead of the full matrix"+ echo " --group GROUP Dependency group: test or test-optional (default: test-optional)"+ echo " --from REF Git ref to diff against (default: main)"+ echo ""+ echo "Everything after -- is forwarded to pytest."+ echo "If no -- is used, all unrecognized args are forwarded to pytest."+ echo ""+ echo "Examples:"+ echo " $0 # matrix of versions, test-optional, diff vs main"+ echo " $0 --python 3.12 # single version"+ echo " $0 --group test # core deps only"+ echo " $0 --from HEAD~3 # diff against 3 commits ago"+ echo " $0 -- -k 'test_foo' -x # forward flags to pytest"+ exit 1+}++PY_VERSIONS=("3.10" "3.11" "3.12" "3.13")+GROUP="test-optional"+CHANGED_FROM="main"++while [[ $# -gt 0 ]]; do+ case "$1" in+ --python)+ PY_VERSIONS=("$2")+ shift 2+ ;;+ --group)+ GROUP="$2"+ shift 2+ ;;+ --from)+ CHANGED_FROM="$2"+ shift 2+ ;;+ -h|--help)+ usage+ ;;+ --)+ shift+ break+ ;;+ *)+ break+ ;;+ esac+done++FAILED=()++for PY_VERSION in "${PY_VERSIONS[@]}"; do+ echo ""+ echo "============================================"+ echo " Python $PY_VERSION / $GROUP"+ echo "============================================"+ echo ""++ if uv run --python "$PY_VERSION" --group "$GROUP" pytest tests/ \+ -v \+ -k "not test_cli" \+ --durations=10 \+ -p packages.pytest_changed \+ --changed-from="$CHANGED_FROM" \+ --include-unchanged=false \+ --picked=first \+ "$@"; then+ echo ""+ echo " ✓ Python $PY_VERSION passed"+ else+ echo ""+ echo " ✗ Python $PY_VERSION FAILED"+ FAILED+=("$PY_VERSION")+ fi+done++echo ""+echo "============================================"+echo " Summary"+echo "============================================"++if [[ ${#FAILED[@]} -gt 0 ]]; then+ echo ""+ echo " FAILED: ${FAILED[*]}"+ echo ""+ exit 1+else+ echo ""+ echo " All versions passed."+ echo ""+fidiff --git a/scripts/pytest.sh b/scripts/pytest.shindex cb62eb3402..70c495edfa 100755--- a/scripts/pytest.sh+++ b/scripts/pytest.sh@@ -6,7 +6,7 @@ usage() {echo ""echo "Options:"echo " --py VERSION Python version (e.g. 3.12). Default: 3.12"- echo " --optional Use test-optional env (includes optional deps)"+ echo " --optional Use test-optional groups (includes optional deps)"echo ""echo "Everything after -- is forwarded to pytest."echo "If no -- is used, all unrecognized args are forwarded to pytest."@@ -44,4 +44,8 @@ while [[ $# -gt 0 ]]; doesacdone-exec uvx hatch run +py="$PY_VERSION" "$ENV:test" "$@"+if [ "$ENV" = "test-optional" ]; then+ exec uv run --python "$PY_VERSION" --group test-optional pytest "$@"+else+ exec uv run --python "$PY_VERSION" --group test pytest "$@"+fidiff --git a/scripts/release.sh b/scripts/release.shindex 996487ad00..a7311ef71e 100755--- a/scripts/release.sh+++ b/scripts/release.sh@@ -73,7 +73,7 @@ fiprint_step "Pulling latest changes"git pull origin main-# Run hatch version+# Run uv versionprint_step "Updating version"echo -e "Running: uv version --bump $VERSION_TYPE\n"uv version --bump $VERSION_TYPEdiff --git a/scripts/test-narwhals.sh b/scripts/test-narwhals.shnew file mode 100755index 0000000000..2528d893b8--- /dev/null+++ b/scripts/test-narwhals.sh@@ -0,0 +1,27 @@+#!/bin/bash+set -e++# This script is used externally by the narwhals repo to run marimo tests+# that exercise narwhals. It is ok to test more than narwhals here, but we+# should not test less.+#+# Usage: scripts/test-narwhals.sh [--python VERSION]++PY_VERSION="3.12"++while [[ $# -gt 0 ]]; do+ case "$1" in+ --python)+ PY_VERSION="$2"+ shift 2+ ;;+ *)+ break+ ;;+ esac+done++exec uv run --python "$PY_VERSION" --group test-optional pytest \+ tests/_data/ \+ tests/_plugins/ui/_impl/ \+ tests/_utils/test_narwhals_utils.pydiff --git a/tests/_server/templates/snapshots/export1.txt b/tests/_server/templates/snapshots/export1.txtindex d628e934ba..dcc9a735a8 100644--- a/tests/_server/templates/snapshots/export1.txt+++ b/tests/_server/templates/snapshots/export1.txt@@ -60,7 +60,7 @@"mode": "read","version": "0.0.0","serverToken": "token",- "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "pixi"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},+ "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "uv"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},"configOverrides": {"formatting": {"line_length": 100}},"appConfig": {"sql_output": "auto", "width": "compact"},"view": {"showAppCode": true},diff --git a/tests/_server/templates/snapshots/export2.txt b/tests/_server/templates/snapshots/export2.txtindex 22288b4bc3..1f8b26ab15 100644--- a/tests/_server/templates/snapshots/export2.txt+++ b/tests/_server/templates/snapshots/export2.txt@@ -60,7 +60,7 @@"mode": "read","version": "0.0.0","serverToken": "token",- "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "pixi"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},+ "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "uv"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},"configOverrides": {"formatting": {"line_length": 100}},"appConfig": {"sql_output": "auto", "width": "compact"},"view": {"showAppCode": true},diff --git a/tests/_server/templates/snapshots/export3.txt b/tests/_server/templates/snapshots/export3.txtindex 1adec1aad5..ba43f5b3b5 100644--- a/tests/_server/templates/snapshots/export3.txt+++ b/tests/_server/templates/snapshots/export3.txt@@ -60,7 +60,7 @@"mode": "read","version": "0.0.0","serverToken": "token",- "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "pixi"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},+ "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "uv"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},"configOverrides": {"formatting": {"line_length": 100}},"appConfig": {"sql_output": "auto", "width": "compact"},"view": {"showAppCode": true},diff --git a/tests/_server/templates/snapshots/export4.txt b/tests/_server/templates/snapshots/export4.txtindex 03ef22a988..1d36f3286f 100644--- a/tests/_server/templates/snapshots/export4.txt+++ b/tests/_server/templates/snapshots/export4.txt@@ -60,7 +60,7 @@"mode": "read","version": "0.0.0","serverToken": "token",- "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "pixi"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},+ "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "uv"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},"configOverrides": {"formatting": {"line_length": 100}},"appConfig": {"css_file": "custom.css", "sql_output": "auto", "width": "compact"},"view": {"showAppCode": true},diff --git a/tests/_server/templates/snapshots/export5.txt b/tests/_server/templates/snapshots/export5.txtindex edfbc21b4d..a23bcbd83f 100644--- a/tests/_server/templates/snapshots/export5.txt+++ b/tests/_server/templates/snapshots/export5.txt@@ -60,7 +60,7 @@"mode": "read","version": "0.0.0","serverToken": "token",- "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "pixi"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},+ "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "uv"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},"configOverrides": {"formatting": {"line_length": 100}},"appConfig": {"app_title": "My App", "html_head_file": "head.html", "sql_output": "auto", "width": "compact"},"view": {"showAppCode": true},diff --git a/tests/_server/templates/snapshots/export6.txt b/tests/_server/templates/snapshots/export6.txtindex f16e149ae8..2f0487cd53 100644--- a/tests/_server/templates/snapshots/export6.txt+++ b/tests/_server/templates/snapshots/export6.txt@@ -60,7 +60,7 @@"mode": "read","version": "0.0.0","serverToken": "token",- "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "custom_css": ["custom1.css", "custom2.css"], "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "pixi"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},+ "config": {"ai": {"custom_providers": {}, "models": {"custom_models": [], "displayed_models": []}}, "completion": {"activate_on_typing": true, "copilot": false, "signature_hint_on_typing": false}, "diagnostics": {"sql_linter": true}, "display": {"cell_output": "below", "code_editor_font_size": 14, "custom_css": ["custom1.css", "custom2.css"], "dataframes": "rich", "default_table_max_columns": 50, "default_table_page_size": 10, "default_width": "medium", "reference_highlighting": true, "theme": "light"}, "formatting": {"line_length": 79}, "keymap": {"overrides": {}, "preset": "default"}, "language_servers": {"pylsp": {"enable_flake8": false, "enable_mypy": true, "enable_pydocstyle": false, "enable_pyflakes": false, "enable_pylint": false, "enable_ruff": true, "enabled": false}}, "mcp": {"mcpServers": {}, "presets": []}, "package_management": {"manager": "uv"}, "runtime": {"auto_instantiate": false, "auto_reload": "off", "default_csv_encoding": "utf-8", "default_sql_output": "auto", "on_cell_change": "autorun", "output_max_bytes": 8000000, "reactive_tests": true, "std_stream_max_bytes": 1000000, "watcher_on_save": "lazy"}, "save": {"autosave": "after_delay", "autosave_delay": 1000, "format_on_save": false}, "server": {"browser": "default", "follow_symlink": false}, "snippets": {"custom_paths": [], "include_default_snippets": true}},"configOverrides": {"formatting": {"line_length": 100}},"appConfig": {"sql_output": "auto", "width": "compact"},"view": {"showAppCode": true},