p_tqdm
p_tqdm copied to clipboard
When using p_tqdm in a Jupyter session and the cell is killed, the processes continue.
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.