tqdm parallel

Solutions on MaxInterview for tqdm parallel by the best coders in the world

showing results for - "tqdm parallel"
Sonia
16 Feb 2020
1from pqdm.processes import pqdm
2# If you want threads instead:
3# from pqdm.threads import pqdm
4
5args = [1, 2, 3, 4, 5]
6# args = range(1,6) would also work
7
8def square(a):
9    return a*a
10
11result = pqdm(args, square, n_jobs=2)
12