title: Parallelize a for loop in Spyder (Python 3.5)
body: <p>I'm trying to parallelize a for loop in python 3.5
  So I turned everything that happened inside the for loop into one function (functionreplacingloop) and then used multiprocessing.pool to map the function for the different inputs (listofinputs) that I was previously looping through:</p>
  
  <pre><code>p = Pool(5)
  answers = p.map(functionreplacingloop, listofinputs)
  </code></pre>
  
  <p>And then the console gets stuck. Even if I click 'stop the current command' it's still stuck and I have to quit the console.</p>
  
  <p>I tried the same thing with joblib.parallel and got the same problem.</p>