<br><br><div class="gmail_quote">On Thu, Oct 20, 2011 at 12:35, Pablo Winant <span dir="ltr"><<a href="mailto:pablo.winant@gmail.com">pablo.winant@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi all,<br><br>I am trying to run an Ipython server on a distant machine with SSH (preferably the notebook) but I couldn't figure out how to do. So far, I have tried two approaches: <br><br>- run a webnotebook on the server, listening on <a href="http://127.0.0.1:8888" target="_blank">127.0.0.1:8888</a>,   tunnel the port to my machine   mymachine:9999 and access it with my local browser. With this setup, I can see a list of notebooks and can apparently edit them but no cell is evaluated. It looks very strange to me as the notebook works correctly if I use a browser running on the server. Is it a websocket problem (both browsers are recent enough)<br>

</blockquote><div><br></div><div>This, I think, is a bug.  The websockets are created on the original addr (<a href="http://127.0.0.1:888">127.0.0.1:888</a>) as resolved by the browser, so if you tunnel the connection to a different port, the websocket connections never establish.  I can reproduce this failure tunnelling 8888 to 9999, and it works tunneling 8888 to 8888.</div>

<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>- try to adapt the follow the instructions given in the doc for the connection over ssh. However, when I run the kernel on the server, it doesn't print the list of ports anymore but gives the name of a json file. I understand this is the new system to store connection informations but I don't know how to use it over the network. I tried   --existing --ssh=myserver   but it doesn't work (yet ?).<br>

</blockquote><div><br></div><div>The notebook does not handle kernels over ssh, only the qtconsole.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<br>Is there currently a way to run a kernel over ssh ? I understand the target is moving quite fast and I am following the progress with great interest.<br></blockquote><div><br></div><div>(assuming git master)</div><div>

<br></div><div>If you start a kernel on one machine, it creates a connection file in the security directory.  Send that file to the client from which you want to connect (or if you are already connected locally, view its contents with `%connect_info`, and use `ipython qtconsole --existing /path/to/kernel-foo.json --ssh myserver`.  </div>

<div><br></div><div>It is no longer possible to just copy/paste ports, because that had security issues.  Files, at least, can be made private.</div><div><br></div><div>-MinRK</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>Best regards,<br><font color="#888888"><br>Pablo<br>
</font><br>_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
<br></blockquote></div><br>