Multiprocessing working in Python but not in iPython

From the documentation:

Note

Functionality within this package requires that the __main__ module be
importable by the children. This is covered in Programming guidelines
however it is worth pointing out here. This means that some examples,
such as the multiprocessing.Pool examples will not work in the
interactive interpreter

Leave a Comment