python in notebook

IPython Notebook mode is a useful tool to conduct reproducible code along with documentation.

To active it at local computer is easy by typing 

> ipython notebook

Now the server is running at the background.  Access in any browser would direct to the ipython notebook.

Occasionally we use the python on a server/workstation.  Then we can create a ssh tunnel to the notebook via:

> ssh -L8080:localhost:8888 username@server

where 8080 is the local port (which can be replaced with other numbers).

Then we can access the notebook with our local browser via