[IPython-user] Trivial parallelisation

Brian Granger ellisonbg.net@gmail....
Tue Dec 9 19:30:51 CST 2008


Jose,

Thanks for this, it is very helpful for others to see what is needed
to get these little things figured out.  Hope things go well.

Cheers,

Brian

On Tue, Dec 9, 2008 at 9:47 AM, Jose Gómez-Dans <jgomezdans@gmail.com> wrote:
> Hi Brian (and others),
>
> I've been trying your suggestions (finally!) and found them really useful. I
> have however decided to add a small improvement
>
> On Tuesday 02 December 2008 21:02:04 Brian Granger wrote:
>> In [2]: mec = client.MultiEngineClient()
>>
>> In [3]: def doit(filename):
>>    ...:     from crunch import CrunchData
>>    ...:     cd = CrunchData()
>>    ...:     return cd.process_file(filename)
>
> crunch needs to be in your python path. If it is not, you can modify your
> definition of doit to:
>  def doit(filename):
>>    ...:     import sys
>>    ...:     sys.path.insert(0,"/home/ucfajlg/Data/python/")
>>    ...:     from crunch import CrunchData
>>    ...:     cd = CrunchData()
>>    ...:     return cd.process_file(filename)
>
> Maybe someone finds it useful!
>
> Thanks!
> Jose
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
>


More information about the IPython-user mailing list