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
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