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.
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.