If I have the following function:
def foo(a, b, c=2, d=6):
return a + b + c + d
and I want to parallelize with multiprocessing
.
How can I pass the following arguments 1, 2, d=10
? i.e. 2 args
and 1 kwarg
?
I saw this post, but it does not seem to make it actually parallel. Another possibly useful example was provided here, but it is hard to untangle.