[IPython-user] IPython1 and TaskClient: a helper for task farming
Thu Apr 24 09:45:35 CDT 2008
Thnx!!!! It helps a lot!!!!
Mainly for ppl that are newbies not only on IPython1 but on Python it self
On Thu, Apr 24, 2008 at 8:47 AM, Yichun Wei <firstname.lastname@example.org> wrote:
> Hi Brian,
> For a while I've been using the attached file to do task farming in
> IPython1. It provides a simple decorator to help turn a function into
> a Task and submit it via TaskClient and return a Deferred as the
> result. The user should attach new callbacks to get results. The
> submission of Tasks and getting back task ids is synchronously done
> It enables usage like:
> # commenting the decorator gives a local running function.
> # with the decorator the function is to be submitted as a Task.
> @parallelized(rc, tc):
> def a_local_function(a,b,c):
> return a+b+c
> result = a_local_function(1,2,3)
> Currently this doesn't make use of the task dependency IPython1
> provides, and doesn't set and use the properties of engines properly.
> I see these as possibly improvements.
> IPython-user mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-user