WIP: making the library working in the IPython notebook.