uqfoundation / pathos

parallel graph management and execution in heterogeneous computing
http://pathos.rtfd.io
Other
1.38k stars 89 forks source link

how to use pathos.helpers.freeze_support in a class used within jupyter lab project? #236

Open kotoroshinoto opened 2 years ago

kotoroshinoto commented 2 years ago

class instantiates a process pool that it uses for various mapped functions.

This is not a simple script executed on the command line, it'll be used in other pieces of code via the imported class.

I am also running this from within jupyter lab/notebooks.

Should I be running pathos.helpers.freeze_support from the notebook before using the class, or from within the class that creates the pool?