I\'m trying to use IPython\'s parallel environment and so far, it\'s looking great but I\'m running into a problem. Lets say that I have a function, defined in a library
An elegant way to do this is with partial functions.
If you know that you want the first argument of foo to be myArg, you can create a new function bar by
from functools import partial bar = partial(foo, myARg)
bar(otherArg) will then return foo(myArg,otherArg)
bar(otherArg)
foo(myArg,otherArg)