parmap
parmap copied to clipboard
ctrl-c break operations on windows
Hey thanks for your project
I am trying to break some code while it's running and I find that ctrl-c doesn't actually terminate the run. It gives error but python still runs.
Is there a way to make parmap terminate on KeyboardInterrupt? Something like https://programmer.group/ctrl-c-in-python-can-t-terminate-multiprocessing-pool-solution.html
Thanks so much
Thanks for the bug report, I'd like to ask you if you found the issue with parmap 1.5.2, and if you were using an earliest version please upgrade it.
I ask because there was a similar issue fixed in 1.5.2 (#14 interrupting parmap in a jupyternotebook). In case you are on the latest version I'll try to reproduce and fix the issue 👍
Hey I am the person running the pySRURGS account. I wasn't sure how to check the version. I ran the following:
pip3.7 install parmap --upgrade
Requirement already up-to-date: parmap in /home/brain/.local/lib/python3.7/site-packages **(1.5.2)**
So I think I am on version 1.5.2
Thanks. I'll look on implementing something like this solution: https://stackoverflow.com/a/6191991/446149
It may take me a while to find the time though.