multiprocessing.Pool in jupyter notebook works on linux but not windows
I'm trying to run a few independent computations (though reading from the same data). My code works when I run it on Ubuntu, but not on Windows (windows server 2012 R2), where I get the error: 'module' object has no attribute ... when I try to use multiprocessing.Pool (it appears in the kernel console, not as output in the notebook itself) (And I've already made the mistake of defining the function AFTER creating the pool, and I've also corrected it, that's not the problem). This happens even on the simplest of examples: from multiprocessing import Pool def f(x): return x**2 pool = Pool(4) for