updated ipython notebook for SO learning