[MRG] basic IPython notebook support

Canvases, histograms and functions are displayed in-line.

See an example here:

http://nbviewer.ipython.org/gist/ndawe/8851604