This comes in very useful if you want to run your notebook on a remote machine (e.g. your data is on that machine, or the machine is a lot faster than your own). From hints here.
- Start ipython notebook on remote machine:
ipython notebook --pylab inline --no-browser --port=7000
- Setup tunneling on local machine:
ssh -N -f -L localhost:7000:localhost:7000 email@example.com
- Open up
localhost:7000on your browser