title: What is the best way to parallelize a for loop in python (2020)?
body: <p><strong>This is not a duplicate question. I came across <a href="https://stackoverflow.com/questions/9786102/how-do-i-parallelize-a-simple-python-loop">this</a> question. And did not find my answer.</strong></p>
  <p>I want to parallelize a for loop in python. By parallelization I meant that:</p>
  <ul>
  <li><p>Every iteration of the loop runs independently and not sequentially (Not like the whole for loop separate from the main program but for loop still sequential)</p>
  </li>
  <li><p>Solution should be cross-platform i.e. works on all platforms. Like When I was trying out joblib, I could not make it work on Ubuntu or Ray which does not work on Windows</p>
  </li>
  </ul>
  <p>Parent question is really old and I was thinking if there is a better way to do it now?</p>