*each* Kernel requires four ports which are randomly selected - so that's four ports per notebook that you need to have available.<div>You can certainly subclass the KernelManager such that it will change the random port selection to selecting from a predetermined list, but you will need to make *a lot* of loopback ports available. Now, you can avoid this issue by using IPC transports instead of TCP, but of course ØMQ does not support IPC transports on Windows.</div>
<div><br></div><div>So I think the answer is probably going to end up being: The IPython Notebook is not compatible with this kind of environment, unless there are Windows wizards who can figure it out.<br><br><div class="gmail_quote">
On Wed, Aug 15, 2012 at 5:04 PM, Darren Govoni <span dir="ltr"><<a href="mailto:darren@ontrenet.com" target="_blank">darren@ontrenet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div>
Hopefully one of the ipython gurus can help us get this to work through a firewall.<br>
Arbitrary port opening isn't going to work in an enterprise firewall environment I think.<div><div class="h5"><br>
<br>
On Wed, 2012-08-15 at 17:01 -0700, Phil Austin wrote:<br>
<blockquote type="CITE">
On 12-08-15 04:47 PM, Darren Govoni [via Python] wrote:
</blockquote>
<blockquote type="CITE">
<br>
> I'm having this problem as well - with a liberal (but still enabled) <br>
> firewall. It think its AD. <br>
> I don't have any control over the firewall or windows machine. But need <br>
> to find a way for this to work. <br>
> <br>
> What ports are required to receive the output cells? I have my notebook <br>
> server running on port 80 (firewall friendly) <br>
> and thought that means all comms to the server piggyback on that port. <br>
> Is that true? <br>
> <br>
> Are there other ports used by notebook we need to be aware of, because <br>
> right now it doesn't work <br>
> through a firewall. <br>
>
</blockquote>
</div></div><blockquote type="CITE"><div><div class="h5">
<br>
Here's what I see on a windows laptop without AD -- the output is <br>
coming back through tcp://<a href="http://127.0.0.1:49926" target="_blank">127.0.0.1:49926</a> etc. -- Phil <br>
<br>
C:\Users\phil>ipython notebook --port 9999 <br>
[NotebookApp] Using existing profile dir: <br>
u'C:\\Users\\phil\\.ipython\\profil <br>
efault' <br>
[NotebookApp] Serving notebooks from C:\Users\phil <br>
[NotebookApp] The IPython Notebook is running at: <a href="http://127.0.0.1:9999/" target="_blank">http://127.0.0.1:9999/</a><br>
[NotebookApp] Use Control-C to stop this server and shut down all kernels. <br>
[NotebookApp] Using MathJax from CDN: <br>
<a href="http://cdn.mathjax.org/mathjax/latest/M" target="_blank">http://cdn.mathjax.org/mathjax/latest/M</a><br>
Jax.js <br>
[NotebookApp] Kernel started: 99113b7c-ca88-4bef-9294-912080dd91ea <br>
[NotebookApp] Connecting to: tcp://<a href="http://127.0.0.1:49926" target="_blank">127.0.0.1:49926</a> <br>
[NotebookApp] Connecting to: tcp://<a href="http://127.0.0.1:49928" target="_blank">127.0.0.1:49928</a> <br>
[NotebookApp] Connecting to: tcp://<a href="http://127.0.0.1:49925" target="_blank">127.0.0.1:49925</a> <br>
[IPKernelApp] To connect another client to this kernel, use: <br>
[IPKernelApp] --existing kernel-99113b7c-ca88-4bef-9294-912080dd91ea.json <br>
[NotebookApp] Kernel started: a7b775b6-3daf-41e0-b92a-d8d054d8ee10 <br>
[NotebookApp] Connecting to: tcp://<a href="http://127.0.0.1:50338" target="_blank">127.0.0.1:50338</a> <br>
[NotebookApp] Connecting to: tcp://<a href="http://127.0.0.1:50339" target="_blank">127.0.0.1:50339</a> <br>
[NotebookApp] Connecting to: tcp://<a href="http://127.0.0.1:50341" target="_blank">127.0.0.1:50341</a> <br>
[IPKernelApp] To connect another client to this kernel, use: <br>
[IPKernelApp] --existing kernel-a7b775b6-3daf-41e0-b92a-d8d054d8ee10.json <br>
<br>
<br>
<br>
<br>
<hr>
<br>
View this message in context: <a href="http://python.6.n6.nabble.com/IPython-User-ipython-notebook-not-displaying-output-cells-tp4985176p4985236.html" target="_blank">Re: ipython notebook not displaying output cells</a><br>
Sent from the <a href="http://python.6.n6.nabble.com/IPython-User-f1657224.html" target="_blank">IPython - User mailing list archive</a> at Nabble.com.
</div></div><pre>_______________________________________________
IPython-User mailing list
<a href="mailto:IPython-User@scipy.org" target="_blank">IPython-User@scipy.org</a>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a>
</pre>
</blockquote>
<br>
</div>
<br>_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br></div>