Repository navigation
Add mlx support - #31151
Add mlx support#31151
Conversation
|
Thank you for opening your first PR into Matplotlib! If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks. You can also join us on gitter for real-time discussion. For details on testing, writing docs, and our review process, please see the developer guide. We strive to be a welcoming and open project. Please follow our Code of Conduct. |
|
I still think there is a more fundamental solution than whitelisting a bunch of libraries, but... |
@jklymak In a simple world we should be able to unconditionally do |
|
I agree that is the current state, however, I still think
Seems like it should work? I don't understand why it doesn't, but I seem to recall somehow pint fails with this. |
PR summary
This PR may closes #31149. The modification goes:
_is_mlx_arrayfor detectingmlxarray type. MLX is a numpy-like array library with apple silicon nativeness._unpack_to_numpyfunction for aorbranch wherenp.asarraymay convertmlx.core.arrayintonp.ndarray.The figure is proved to be plotted:

PR checklist