Skip to content

Instantly share code, notes, and snippets.

View keegandent's full-sized avatar

Keegan Dent keegandent

View GitHub Profile
@ltalirz
ltalirz / tqdm_pp.py
Created July 20, 2021 16:23
tqdm with ProcessPoolExecutor
import time
import concurrent.futures
from tqdm import tqdm
def f(x):
time.sleep(0.001) # to visualize the progress
return x**2
def run(f, my_iter):
l = len(my_iter)