title: Tracking progress in python list(map(...))
body: <p>I am attempting to track progress in the following code:</p>
  
  <pre><code>from toolz import compose
  calculator = compose(my_function, list, my_dict.get, tuple)
  result = list(zip(*map(calculator, my_values)))
  </code></pre>
  
  <p><code>my_values</code> is a list of length ~1mio. My first attempt is to add a counter to <code>my_function</code> that increments and print it out when a multiple of X (e.g. <code>X==500</code>) is reached.</p>
  
  <p>Is there a pythonic or cleaner way to achieve this, i.e. without adding lots of counters to various loops? A progress bar in jupyter notebook would work too.</p>