[IPython-user] How to customize ipengine at its start?

Yichun Wei yichun.wei@gmail....
Sun Nov 9 04:50:01 CST 2008


On Sun, Nov 9, 2008 at 2:47 AM, Yichun Wei <yichun.wei@gmail.com> wrote:
> I think Min's suggestion about initializing the engines at their start
> is great if it really works. Such initialization can be followed with
> non-trivial MapTasks.
>
> But my attempt to do so failed. The source code shows currently
> ipengine ignore every arg passed to it. Is there an easy way (other
> than via MultiEngineController) through it I can have engines
> executing customized init scripts or init python statement? I see some
> configuration can be down similarly to what "--mpi" option is doing,
> but not as strict forward as running a init scritpt like what Min has
> proposed: "ipengine -s init.py"

Or enable a stdin to ipengine when it is started, so the user can have
it run arbitrary python statements...

>
> Any suggestions will be highly appreciated.
>
>
> On Thu, Nov 6, 2008 at 10:43 PM, Min Ragan-Kelley <benjaminrk@gmail.com> wrote:
>> ...
>>
>> As for handling incoming engines not being initialized, it makes more sense
>> to me to use the "ipengine -s <initscript.py>" to ensure that engines are
>> initialized when they connect than for tasks to assume that the engine has
>> not been initialized in the event of a failure.
>> ...
>>
>> -MinRK
>


More information about the IPython-user mailing list