iPython Notebooks on a remote server

What is iPython Notebook?

From iPython.org:

The IPython Notebook is an interactive computational environment, in which you can combine code execution, rich text, mathematics, plots and rich media, as shown in this example session:

iPython Notebook example

The IPython notebook with embedded rich text, code, mathematics and figures. It aims to be an agile tool for both exploratory computation and data analysis, and provides a platform to support reproducible research, since all inputs and outputs may be stored in a one-to-one way in notebook documents.

Setup your virtualenv

You can follow the instructions to setup a virtualenv here.

Install iPython Notebook

  1. Start your virtualenv
  2. Run pip install ipython['notebook']

Run iPython Notebook

Run ipython notebook --no-browser --port=54321

Note: You can use any open port higher than 1024 and less than 65535

Forward the connection locally

On another terminal, run ssh -L 54321:localhost:54321 user@server

Note: Remember to change user, server and the port to what you specified previously.

Accessing your iPython Notebook

Open up your favorite browser and go to http://localhost:54321

more ...

Setup VPN and printers on a mac

Thought I’d share some more useful tips :)

Setting up the VPN

You can try the Cisco AnyConnect client, or this:

  1. Go to System Preferences > Network

  2. Click on the + button to add the vpn configuration.

  3. Select for Interface VPN, give it a name and click Create.

  4. Type l2tp.purdue.edu ...
more ...

About Giselle Zeno
I'm a Computer Science PhD student at Purdue and an avid coder. more