[IPython-dev] Generic design for an IPython servers that talks to editors (TextMate, vi, emacs)
Brian Granger
ellisonbg.net at gmail.com
Sun Dec 7 12:52:49 EST 2008
> Please forgive my Twisted newbie-ness, but why not use an
> IProcessProtocol? I realize that running a service on a socket lets
> multiple editors connect, but is that really a likely use case?
I think potentially yes. But remember, you can't connect/reconnect a
process protocol. Also, I don't think you can attach a process
protocol to a process that someone else started. Using a Unix socket
makes all of these things trivial.
> If
> you're really planning on having multiple clients, don't you have to
> end up replicating (or using) all of IPython.kernel to deal with the
> semantics of multiple clients connecting to an IPython instance?
No, not really, because the only capability we are exposing is
execute, and we don't even return stdout (it is printed in IPython
itself). But, yes, eventually, all of this should be based on the
engine itself. But for now, this is an easy thing to maintain. Have
a look at the code and you will see what I mean.
Good question though.
Cheers,
Brian
> barry
>
>>
>> Brian
>>
>>>
>>> Gaƫl
>>>
>> _______________________________________________
>> IPython-dev mailing list
>> IPython-dev at scipy.org
>> http://lists.ipython.scipy.org/mailman/listinfo/ipython-dev
>>
>
More information about the IPython-dev
mailing list