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 ...

Sphinx for Python documentation

What is Sphinx?

From sphinx-doc.org:

Sphinx is a tool that makes it easy to create intelligent and beautiful documentation, written by Georg Brandl and licensed under the BSD license.

It was originally created for the new Python documentation, and it has excellent facilities for the documentation of Python projects ...

more ...

Python virtual environments

What is virtualenv?

From the Python Guide:

A Virtual Environment, put simply, is an isolated working copy of Python which allows you to work on a specific project without worry of affecting other projects.

For example, you can work on a project which requires Django 1.3 while also maintaining ...

more ...

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