1.如果没有g++,先安装g++:
sudo apt-get install g++
2.安装IPython和IPython Notebook:
sudo pip install IPython
sudo pip install urllib3
sudo pip install jupyter
在终端输入jupyter notebook或ipython notebook浏览器会自动弹出,可在浏览器中使用ipython。点击右侧New菜单栏下的Python2新建一个文件
每个框内都可以写一组代码,按shift+enter运行代码
在running菜单中,点击对于文档后的shutdown关闭文档
如果需要关闭整个jupyter notebook,则在原来的终端中按两次ctrl+c