-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specify specific or maximum Python version #74
Comments
I think I was holding this wrong. The python version isn't really specified in the notebook but instead in the
|
Indeed, the behavior is inherited from uv (e.g., I think this makes sense for pure Python scripts, as they should be forward-compatible between minors.... however, an issue often arises with binaries or wheels for dependencies, where a new Python release may lack a compatible wheel. In that case, I'd prefer the latest-compatible Python version with a wheel (rather than triggering a build). I recommend providing the flag with |
I'm going to pin this issue because I don't know the resolution (but I assume there might be some discussion in uv about this same thing for standalone scripts). |
I got a bit confused that
juv init --python=3.9 notebook.ipynb
installs at least Python 3.9 rather than specifically 3.9. Maybe the command should bejuv init --python='>=3.9' notebook.ipynb
orjuv init --min_python=3.9 notebook.ipynb
.I see that this option corresponds to the
UV_PYTHON
variable so maybe this "works as intended" but at least I wanted to drop a note here if someone else runs into this. I was able to specify a max version in the notebook itself.The text was updated successfully, but these errors were encountered: