Multiprocessing in Python on Windows and Jupyter/Ipython — Making it work

This post is most useful if you are using Windows and Jupyter/Ipython, or atleast one of them.

Have you ever come across the situation where you want to speed up your code and were too afraid to try multiprocessing. Or you tried and your fears came true and nothing worked. Or your took another step and found out that windows does not support forking and child processes can’t be distinguished from parent processes, so you need to include an `if__name__ = '__main__' clause and you tried that and it still did…