Pynbody version 2

19 views
Skip to first unread message

PONTZEN, ANDREW P.

unread,
Nov 19, 2024, 5:32:12 AM11/19/24
to pynbod...@googlegroups.com
Dear all,

As you may have seen, over the last 9 months or so all new development on pynbody has been towards ‘version 2’. 

I have now pushed a release candidate of version 2 onto pypi. By the end of the year, I expect version 2 to be the default version that pypi will deliver when you pip install pynbody. So, for any new projects, it’s worth starting with version 2. For now, you still need to specifically request the pre-release version, something like this:

 pip install -U --pre pynbody

to try it out. This supports python 3.10 through 3.13 inclusive, and numpy 1.x or 2.x. Binary wheels are built for macos and linux on both x86_64 and arm processors. The macos wheels require macos 13+ (for x86_64) or 14+ (for arm).

Version 2 streamlines the functionality of pynbody, removing poorly supported aspects of the code and focussing a lot of effort in making the core parts of the code as reliable as possible. Please be aware for this reason that version 2 is not entirely backwards-compatible with version 1. A summary of the major changes is here: https://pynbody.readthedocs.io/latest/tutorials/changes_v2.html  

Version 2 comes with vastly superior documentation including overhauled tutorials, and full reference information on every single function: https://pynbody.readthedocs.io/latest/index.html 

(My personal favourite is the images tutorial here https://pynbody.readthedocs.io/latest/tutorials/images.html

If you encounter any problems, please create a github issue (or, even better, a pull request with a fix!)

And, by the way, if you haven’t already you might like also to try out pynbody’s separate GPU-based visualization package, topsy (https://github.com/pynbody/topsy

All the best,

Andrew 

PONTZEN, ANDREW P.

unread,
Dec 12, 2024, 5:59:12 AM12/12/24
to pynbod...@googlegroups.com
Dear all,

Pynbody version 2 now has ‘release’ status meaning it will be the default if you pip install.

If for any existing projects you need to keep using pynbody version 1, you can get it via

 pip install "pynbody<2.0"

However I am unlikely to be able to provide any support for pre-v2 pynbody, so all new projects should use version 2.

For a summary of changes see here:


All the best,

Andrew
Reply all
Reply to author
Forward
0 new messages