updated IPython notebook example