v0.2.24
Enhancements
Notes
This release adds --pin
flag to juv add
to have package specifiers resolved to an exact version at the time of the command, and subsequently pinned in the notebook/script.
uvx juv init
uvx juv add Untitled.ipynb 'numpy>=1.0.0' 'polars' # adds 'numpy>=1.0.0' 'polars'
uvx juv add Untitled.ipynb numpy polars --pin # adds 'numpy==2.1.3' 'polars==1.13.1'
This same behavior can be achieved without juv for regular scripts with a unix pipe:
echo 'numpy\npolars' | uv pip compile --no-deps - | grep '==' | xargs uv add --script foo.py
But alternatively you can use juv add
for the same thing:
uv init --script foo.py
uvx juv add foo.py numpy polars --pin