Add uv support alongside pixi - #1
Open
matthiaskoenig wants to merge 1 commit into
Open
matthiaskoenig wants to merge 1 commit into
matthiaskoenig wants to merge 1 commit into
Conversation
Mirror the pixi dependency set in pyproject.toml so the tutorials can also be run with uv, and document both workflows in the README. - pyproject.toml: declare the conda and pypi dependencies from pixi.toml as PyPI requirements, pinned to the same lower bounds; add .python-version - pyproject.toml: exclude tutorials/ from ruff and ty. marimo notebooks are not valid plain Python (top-level `async with app.setup()`), so they are linted with `marimo check` instead - tutorials/: assign the micropip bootstrap to a dummy variable, fixing the `error[branch-expression]` reported by `marimo check` in poincare_intro, simbio_intro and analysis - README.md: split the local setup into pixi and uv sections - .gitignore: ignore .venv/ and uv.lock Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JDjggCk5H5pJrUWb2b9ENV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
pyproject.tomlso the tutorials can be run with uv as well as pixi. Nothing about the pixi workflow changes —pixi.toml,pixi.lockandpixi run openare untouched.What's in here
uv environment.
pyproject.tomlmirrors the dependency set frompixi.toml, with the conda-side packages declared as their PyPI equivalents (python-libsbml,pylatex) and the same lower bounds..python-versionpins 3.13.uv.lockand.venv/are gitignored.Both verified working locally.
A
marimo checkfix.poincare_intro.py,simbio_intro.pyandanalysis.pyeach reported:The playground
micropipbootstrap was the last statement in the setup cell, so marimo tried to render its result as the cell output. Applying marimo's own suggestion (_ = await micropip.install(...)) clears it.io.pywasn't affected — it has adefafter theif— but got the same treatment so all four setup cells match.marimo checkis now clean on all four notebooks.Linter config.
tutorials/is excluded from ruff and ty inpyproject.toml. The notebooks are valid marimo but not valid plain Python — the top-levelasync with app.setup()that marimo generates makes ty reportinvalid-syntax, which isn't suppressible per-rule.marimo checkis the right linter for these files.README. Local setup split into
## pixiand## uvsections.🤖 Generated with Claude Code
https://claude.ai/code/session_01JDjggCk5H5pJrUWb2b9ENV