Skip to content

Instantly share code, notes, and snippets.

View PiotrDabrowskey's full-sized avatar
💻
computer

Piotr Dąbrowski PiotrDabrowskey

💻
computer
View GitHub Profile
@PiotrDabrowskey
PiotrDabrowskey / multiprocessing_tqdm.py
Last active December 13, 2019 13:58
python multiprocess tqdm example
from multiprocess import Pool
def tqdm_multiprocessing_map(fun, sequence, unordered=False, unpack_args=False, debug=False):
if unpack_args:
def fun_wrapper(args):
return fun(*args)
else:
fun_wrapper = fun