[IPython-dev] Question on remote kernels

Aaron O'Leary aaron.oleary at gmail.com
Fri Mar 14 05:52:47 EDT 2014

> I would like to launch kernels on distance machines in the IPython notebook
> web app.

Not exactly what you're asking for but I start a notebook on the
remote machine and connect to it with a ssh tunnel. Then I can work
with notebooks in the local browser.

On linux, using ssh with keys:

# create tunnel to remote-machine on port 8898
ssh -X -N -f -L localhost:8898:localhost:8898 remote-machine
# command to start notebook with
notebook_up='ipython notebook --no-browser --port=8898
--notebook-dir=/path/to/notebooks &'
# start notebook on remote-machine
ssh -f remote-machine "${notebook_up}"

More information about the IPython-dev mailing list