Update ipython notebook to run in terminal