Conversion into IPython Notebook