<div dir="ltr"><div class="markdown-here-wrapper" id="markdown-here-wrapper-774310" style><p style="margin:1.2em 0px!important">Passing output from one task to the input of another is not well supported. As others have said, one approach is to persist the results to the filesystem.<br>

Another, assuming it’s okay to restrict dependent tasks to run on the same engine as the dependency, is to persist the values in the engine’s namespace and use parallel.Reference to get it as an argument to subsequent tasks.</p>


<p style="margin:1.2em 0px!important">Here’s <a href="http://nbviewer.ipython.org/gist/minrk/11415238">an example</a> of doing this.</p>
<p style="margin:1.2em 0px!important">-MinRK</p>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 29, 2014 at 4:25 PM, Andrea Zonca <span dir="ltr"><<a href="mailto:zonca@sdsc.edu" target="_blank">zonca@sdsc.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class=""><br>
On Tue, Apr 29, 2014 at 3:56 PM, Andrew Jaffe <<a href="mailto:a.h.jaffe@gmail.com">a.h.jaffe@gmail.com</a>> wrote:<br>
> the particular difference is passing the output of the<br>
> earlier tasks to the later ones -- this is a use-case that is very<br>
> specifically not addressed in those examples or the docs -- each of the<br>
> view.apply calls there just use no arguments, where I want to use the<br>
> value calculated by a previous view.apply.<br>
<br>
</div>Not sure I understand your application,<br>
but isn't it an option to write the results to a shared filesystem<br>
from the early task and read it from the late task?<br>
This would work for tasks running on different nodes.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br></div>