-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Ecosystem compatibility with numpy 2.0 #26191
Comments
Thanks - for JAX we are planning an 0.4.26 release in the next day or two which will be built against NumPy 2.0.0rc1. |
Also, in case you want to add it, we just released |
Thanks for putting this together Ralf! 🙏 This is incredibly helpful 🙂 |
Thanks @jakevdp, I added the info for both JAX and |
|
Also, here's where to track progress for cartopy : SciTools/cartopy#2339 |
Thanks @neutrinoceros, much appreciated. Added both packages. |
ContourPy 1.2.1 has just been released on PyPI (https://pypi.org/project/contourpy/1.2.1/) with NumPy 2 compatibility, most relevant PR is contourpy/contourpy#371. It is a compulsory dependency of Matplotlib. |
For PyArrow, it will be the upcoming 16.0 release that will be the first numpy-2.0-compatible release, but this will only be expected in around 3 weeks at the earliest (but normally certainly before the end of the month). |
Could we add OpenCV to this list? I filed a ticket here to track progress on a numpy 2.0 build for it. |
Thanks @ianthomas23, @jorisvandenbossche, @dkbarn - all info added to the table. |
JAX released 0.4.26 on pypi, which is compatible with NumPy 2.0. (NumPy folks: congratulations on your imminent v2 release!) |
mpl 3.8.4 is out, built with np 2 |
yt 4.3.1 is on PyPI and built with numpy 2.0.0rc1 ! EDIT(seberg): Added to table. |
|
Yes, Matti pointed out that patch to me (it wasn't linked in the issue so I didn't see it), and it works fine when backported to 1.84 and even 1.82. |
@rgommers could we please update these entries in the table in the OP (replacing the old ones)?
|
Updated for all recent comments, thanks all! |
Thanks Ralf! 🙏 Looks like nearly all libraries have some kind of issue/PR reference (or already a working release) One that appears to be missed is Keras, so have raised upstream issue: keras-team/keras#19691 |
Thanks @MichaelHudgins for the insight here Am curious how things are looking for TensorFlow + NumPy 2. Were you able to get more insight in the past 2 weeks? Edit: Have gone ahead and opened an issue ( tensorflow/tensorflow#67291 ). Let's discuss there |
The boost version in the table is wrong. boostorg/python@0474de0 is not part of 1.85, but will be in 1.86. PS. Sidenote: it would be helpful if the rest of the table (perhaps excluding some "most important packages") were sorted alphabetically, as it's getting a bit unwieldy to find specific packages. |
Agreed, if "important" packages need to be specially identified, they can be bolded or a column with an X or check mark or whatever |
I could not find an issue in their bug tracker, but some testing implies that
|
@rgommers have a few updates batched below for the table GDAL 3.9.0 is released (with NumPy 2 support)! 🎉 Also can we please add these NumPy 2 tracking issues to the table:
At this point Numba's 0.60.0rc1 is packaged ( numba/numba#9544 (comment) ). Working on a conda-forge RC package for it as well. Would start pointing libraries downstream of Numba to these Boost.Python should be fixed in the 1.86.0 release (we narrowly missed 1.85.0) Dask is looking promising ( dask/dask#11066 (comment) ). Though still want to double check things there Lastly opened an issue for Sparse: pydata/sparse#680 |
Thanks all, updated for all comments.
Okay, I reordered it. The initial order has served its purpose, everything was blocked on a small set of packages at the start but those all did their release. |
|
Dask 2024.5.1 works with NumPy 2 ref: https://docs.dask.org/en/stable/changelog.html#numpy-2-0-support |
Great, thanks @hameerabbasi and @jakirkham. Updated the table for those, and also added RAPIDS (linking to your tracking issue @jakirkham). We're getting there - we've had ~7 weeks since RC1 and are about 75% through the list in this issue. In the community meeting next Wednesday we should probably discuss picking a release date in June. |
What about (optional) inter-dependencies? Pandas and numexpr both claim to be compatible, but together they choke on the changed numpy 2 type repr of scalars: pandas-dev/pandas#58548 |
I'd see that as a regular bug - a few test failures in a combo of two packages that were not tested together in CI is common, but doesn't detract (from the purposes of this tracking issue at least) from them both being NumPy 2.0-compatible. |
Posting here as well for completeness (xref #24300 (comment)): release date will be June 16th. |
For Biopython we do have C code using NumPy, but my understanding is we are insulated from the C API changes due to using the buffer protocol rather than the NumPy C API. I expect a "fully compatible" Biopython 1.84 in early June, but all this addresses is the scalar repr changes to work on recent Numpy v1 and the v2 release candidates biopython/biopython#4676 https://lists.open-bio.org/pipermail/biopython/2024-May/017049.html |
Thanks Ralf! 🙏 Also thank you for including us 🙂 |
Treelite 4.2.1 is compatible with NumPy 2.0 |
This list tracks the compatibility status of packages that depend on or support NumPy. If "compatible release on PyPI" does not say "yes" but a version number is listed: this is based on plans announced in a tracking issue or other communication by the authors of the package.
Maintainers: please feel free to edit directly (please refresh the page first to avoid overwriting edits from others!). Others who want to update things: please do comment, or feel free to ping me elsewhere.
<2
upper bound for 2.16.1, requirements, lock fileThe text was updated successfully, but these errors were encountered: