Skip to content

Instantly share code, notes, and snippets.

View agnesmm's full-sized avatar

Agnès Mustar agnesmm

View GitHub Profile
@MInner
MInner / parallel.py
Last active August 9, 2022 02:14
Executing jobs in parallel with a nice progress bar: a tqdm wrapper for joblib.Parallel
from tqdm import tqdm_notebook as tqdm
from joblib import Parallel, delayed
import time
import random
def func(x):
time.sleep(random.randint(1, 10))
return x