<div class="gmail_quote">On Wed, Sep 19, 2012 at 4:49 AM, Thomas Kluyver <span dir="ltr"><<a href="mailto:takowl@gmail.com" target="_blank">takowl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 19 September 2012 08:49, T J <<a href="mailto:tjhnson@gmail.com">tjhnson@gmail.com</a>> wrote:<br>
> the last response from the OP mentions that each open notebook uses 3 random<br>
> ports (which differ from the port that the IPython notebook server listens<br>
> on).  Is this true?  This seems like it would be an issue for me.  Can<br>
> someone explain, in general, what IPython notebook is doing with these other<br>
> ports?<br>
<br>
</div>One of them is the main request/response channel (e.g. 'execute this<br>
code', 'get completions for foo'), one is a publication channel,<br>
primarily for things printed to stdout, and I think the third is to<br>
get input for stdin (although the notebook doesn't currently implement<br>
that).<br>
<br>
There's a pull request open that experiments with merging the three<br>
websocket channels into one - that might help you:<br>
<a href="https://github.com/ipython/ipython/pull/2321" target="_blank">https://github.com/ipython/ipython/pull/2321</a><br>
<br><br></blockquote><div><br></div><div>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.</div>
</div>