Silence tqdm's output while running tests or running the code via cron
<p>I'm using <a href="https://pypi.python.org/pypi/tqdm" rel="noreferrer">tqdm</a> to display progress bars while some long-running Django management commands complete. It works great (so easy to use!), but... </p>

<p>When I run unit tests over my code, I want to stop the progress bars from outputting. And if I run those commands in the background using cron or some other means, I'd also want the progress bars not to be in the output.</p>

<p>I can't see an easy way to do these two things, but perhaps I've missed something?</p>