swansonk14 / p_tqdm

Parallel processing with progress bars
MIT License
457 stars 44 forks source link

When using p_tqdm in a Jupyter session and the cell is killed, the processes continue. #46

Closed r-menezes closed 2 months ago

r-menezes commented 1 year ago

p_tqdm is the easiest and most beautiful way to parallelize computations. I use it often but sometimes I need to cancel some calculation. When this happens, I need to restart the kernel.

I thought that encapsulating the usage of the Pool in a with ... as ... clause could solve this problem. I am presenting a PR implementing this small change to demonstrate it.

swansonk14 commented 2 months ago

This is now solved by https://github.com/swansonk14/p_tqdm/pull/47. Thank you @r-menezes!