[IPython-User] Multiprocessing Pool woes
Wed Feb 12 00:04:38 CST 2014
Yes, functools.partial objects are callable objects not real functions so
they don't have a func_code object to steal. It would likely be possible to
make it work, but basically you are going to keep running into problems. If
there is a built-in solution is will be much better.
Additionally, if you can write the function in an importable module (aka
its own .py file), then it always works. I know that doing that is not very
in-line with the normal workflow of IPython Notebook however.
On Tue, Feb 11, 2014 at 2:21 PM, pbr <email@example.com> wrote:
> Thanks for the code, Jeff, the pool examples now work.
> Unfortunately, what I actually need to work is the DEAP evolutionary
> pool.map wrapper. It passes a functools.partial object which is maybe not
> one of the function types that this workaround will handle?
> see here for library info:
> I still haven't tried the master branch, i'll give that a shot.
> View this message in context:
> Sent from the IPython - User mailing list archive at Nabble.com.
> IPython-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-User