nteract / papermill

📚 Parameterize, execute, and analyze notebooks
http://papermill.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
6k stars 429 forks source link

error with `numpy` v2 #800

Open jbloom opened 5 months ago

jbloom commented 5 months ago

I get the following error when I run papermill with numpy version 2.0.0:

papermill.exceptions.PapermillExecutionError: 
---------------------------------------------------------------------------
Exception encountered at "In [1]":
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
AttributeError: _ARRAY_API not found

I think this has to do with a change in the numpy API, as here.

MSeal commented 3 months ago

I was hoping given time Numpy would solve this for Python 3.12, but it seems they're just not going to so we likely need to add a limit for now: https://github.com/numpy/numpy/issues/26710