Skip to content

v0.2.24

Compare
Choose a tag to compare
@github-actions github-actions released this 14 Nov 19:34
· 24 commits to main since this release

Enhancements

  • Add support for regular Python script in juv add (#51)
  • Add --pin flag for juv add (#51)

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