For Jupyter Notebook, you need to refactor your code a bit more. Please refer to this post for solution. https://medium.com/@grvsinghal/speed-up-your-python-code-using-multiprocessing-on-windows-and-jupyter-or-ipython-2714b49d6fac 36