make IPython notebook work