hugetim / nbstata

A Jupyter kernel for Stata built on pystata
https://hugetim.github.io/nbstata/
GNU General Public License v3.0
28 stars 3 forks source link

Some Magics do not function with Numpy 2.0 #48

Closed ibertchen closed 2 weeks ago

ibertchen commented 3 months ago

After upgrading Numpy to version 2.0, some Magics commands do not work correctly due to the way Numpy handles NaN.

For example:

sysuse auto, clear
%head 10

leads to

browse failed. np.NaN was removed in the NumPy 2.0 release. Use np.nan instead.

The current workaround is to downgrade Numpy to version 1.26.4 or earlier.

hugetim commented 1 month ago

Thank you for reporting! I'll try to get a fix by the end of this month.

hugetim commented 2 weeks ago

Fixed in v0.8.1