add ipython notebook version of this tutorial