Skip to content

Instantly share code, notes, and snippets.

@leimao
Created June 12, 2018 03:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leimao/d4db74b840a40c84096c9fd20049c604 to your computer and use it in GitHub Desktop.
Save leimao/d4db74b840a40c84096c9fd20049c604 to your computer and use it in GitHub Desktop.
Tqdm Process Example
"""
Tqdm Process Hook
Lei Mao
University of Chicago
"""
from tqdm import tqdm
def addup():
accum = 0
for i in range(1000):
accum += 1
return accum
def counter():
for i in tqdm(range(100000)):
addup()
return
if __name__ == '__main__':
counter()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment