Multiprocessing : use tqdm to display a progress bar
To make my code more "pythonic" and faster, I use "multiprocessing" and a map function to send it a) the function and b) the range of iterations. The implanted solution (i.e., call tqdm directly on the range tqdm.tqdm(range(0, 30)) does not work with multiprocessing (as formulated in the code below). The progress bar is displayed from 0 to 100% (when python reads the code?) but it does not indicate the actual progress of the map function. How to display a progress bar that indicates at which step the 'map' function is ? from multiprocessing import Pool import tqdm import time def _foo(my