modified ipython notebook(1)