title: How to make tqdm play nice with jenkins?
body: <p>Love <a href="https://pypi.python.org/pypi/tqdm" rel="noreferrer">tqdm</a> progress bar, but when I use it on jenkins, I keep getting a bunch of weird artifacts and too much bloat in stdout (specifically, omnipresence of <code>[A</code>). Is there a secret mode in tqdm to make it work nicely with jenkins? Bonus points for seamless detection of non-interactive shells like jenkins. Here is what my typical output looks like:</p>
  
  <pre><code>label: 0it [00:00, ?it/s][A
  [A
   16%|#6        | 5378/33302 [36:28&lt;2:30:49,  3.09it/s]
  [A
   16%|#6        | 5379/33302 [36:29&lt;2:36:46,  2.97it/s]
  [A
  ...
  </code></pre>