[IPython-dev] Kernel-client communication

Robert Kern robert.kern@gmail....
Thu Sep 9 18:06:46 CDT 2010


On 9/9/10 5:47 PM, MinRK wrote:
>
>
> On Thu, Sep 9, 2010 at 13:46, Robert Kern <robert.kern@gmail.com
> <mailto:robert.kern@gmail.com>> wrote:
>
>     On 9/9/10 2:48 PM, Almar Klein wrote:
>      > Fair enough. But what about my second argument: why can commands be
>     executed by
>      > all clients, but a response to raw_input only from one?
>
>     That may be a reason to turn that into an XREQ socket on the kernel and XREP
>     socket on the frontends, submitting one XREQ message to each frontend, and
>     letting the first response "win", but it doesn't let you reuse the
>     kernel-XREP/frontend-XREQ pair of sockets for this purpose.
>
>
> It probably shouldn't be XREQ on the Kernel, because then raw_input requests
> would be load balanced across clients, which doesn't really make sense. If it's
> XREP on the Kernel, then the kernel could explicitly request raw_input from the
> client who caused the prompt.

Ah, right. I was assuming you could send XREQs with a targeted IDENTITY, but I 
guess you do have to reverse the XREQ/XREP relationship to do that.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco



More information about the IPython-dev mailing list