-
Notifications
You must be signed in to change notification settings - Fork 54
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
Facing troubles with Matplotlib: not compiled against NumPy v2 #1766
Comments
I guess changing this line for NumPy as a host dependency is the way to go:
unless I'm missing something? |
Yes, this seems to be pinned in The good news is that the latest builds using emscripten 3.1.73 and python 3.13 are just becoming available at https://prefix.dev/channels/emscripten-forge-dev. They are probably not fully reliable yet as they are so new and there are probably some useful packages not yet built, but if you want to try it out now I think all you need to is change the |
Thanks for looking into it!
I think it might be coming from the global pin, as
I'll switch to that and see if that works; Matplotlib would likely have been built by now. I think this server sounds useful to document under https://emscripten-forge.org/usage/package_server/ as an experimental choice for those who need it. |
@ianthomas23, no luck. I switched to the dev channel, but I think there's a check somewhere that looks for the Emscripten 3.1.45 ABI as an underlying metapackage of sorts:
|
Here's a simple repo for a Lite deployment including just pyodide and xeus python 3.13 kernels: https://github.com/ianthomas23/jlite-kernels. And it is deployed to github pages at https://ianthomas23.github.io/jlite-kernels. It works for |
Thanks! It's good that Matplotlib doesn't force NumPy 2 at runtime at the moment (and probably won't until the coming two years perhaps?), and is otherwise up to date on the stable channel, so there's no hurry about it. |
@agriyakhetarpal JupyterLite deployment https://github.com/ianthomas23/jlite-kernels (deployed at https://ianthomas23.github.io/jlite-kernels) is now working with xeus |
Thanks, @ianthomas23! Is there a timeline for this kernel's change from canary to stable, and for a general rollout of 3.1.73 ABI packages? Is there an issue/PR I can subscribe to to know more about the transition? |
There is no commitment to a particular timeline but it is being actively worked on. And there isn't really a particular issue or PR as the work is distributed across By the way, matplotlib 3.10.0 is now available for the xeus python 3.13 kernel. |
fyi I created an issue with the missing packages for the 3.1.73 branch #1822 |
Hi, we are trying out a Xeus-based environment for Matplotlib in the browser as a part of matplotlib/matplotlib#29506, where
import matplotlib
doesn't seem to work with NumPy 2.2.2, as it hasn't been compiled against NumPy v2.What would be the way to do so? Extension modules compiled against NumPy 2.x work with both 1.x and 2.x, so a re-compilation and subsequent upload should work.
The text was updated successfully, but these errors were encountered: