Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

numpy: How do you "break" a numpy operation?

Tags:

numpy

I accidentally tried to make a 200,000 x 200,000 array in numpy. Control-C does not seem to break the operation. Is there any way to stop the array creation without simply killing the python session?

like image 952
keflavich Avatar asked Jul 12 '26 06:07

keflavich


1 Answers

Unfortunately no. Python (and MatLab, the only other analysis package I use) do not detect the user interrupt until the current operation (NOT run) is finished.

like image 65
tnknepp Avatar answered Jul 15 '26 08:07

tnknepp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!