[IPython-dev] IPython Notebook on Webfaction

T J tjhnson at gmail.com
Sat Sep 22 14:54:14 EDT 2012


On Thu, Sep 20, 2012 at 2:42 PM, MinRK <benjaminrk at gmail.com> wrote:

>
>
> On Wed, Sep 19, 2012 at 9:32 AM, T J <tjhnson at gmail.com> wrote:
>
>> On Wed, Sep 19, 2012 at 4:49 AM, Thomas Kluyver <takowl at gmail.com> wrote:
>>
>>> On 19 September 2012 08:49, T J <tjhnson at gmail.com> wrote:
>>> > the last response from the OP mentions that each open notebook uses 3
>>> random
>>> > ports (which differ from the port that the IPython notebook server
>>> listens
>>> > on).  Is this true?  This seems like it would be an issue for me.  Can
>>> > someone explain, in general, what IPython notebook is doing with these
>>> other
>>> > ports?
>>>
>>> One of them is the main request/response channel (e.g. 'execute this
>>> code', 'get completions for foo'), one is a publication channel,
>>> primarily for things printed to stdout, and I think the third is to
>>> get input for stdin (although the notebook doesn't currently implement
>>> that).
>>>
>>> There's a pull request open that experiments with merging the three
>>> websocket channels into one - that might help you:
>>> https://github.com/ipython/ipython/pull/2321
>>>
>>>
>>>
>> Look promising.  This pull requests seems to make it easier to use the
>> notebook behind a proxy, but its unclear to me if this allows me to
>> restrict which the ports the notebooks will try to use.
>>
>
> People get confused by the fact that the notebook communicates with
> *kernels* via random localhost ports (even there, it connects, it does not
> listen).  All communications with browsers happen over a single port, and
> the notebook server only ever listens on that single user-configurable port.
>


Thanks for the clarification. Very helpful.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120922/a504b1d3/attachment.html>


More information about the IPython-dev mailing list