1.如果没有g++,先安装g++:

sudo apt-get install g++

2.安装IPython和IPython Notebook:

sudo pip install IPython

linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用

sudo pip install urllib3

linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用

sudo pip install jupyter

linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用


安装完毕,在终端输入ipython可进入ipython交互环境

linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用


在终端输入jupyter notebook或ipython notebook浏览器会自动弹出,可在浏览器中使用ipython。点击右侧New菜单栏下的Python2新建一个文件

linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用


每个框内都可以写一组代码,按shift+enter运行代码

linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用


在running菜单中,点击对于文档后的shutdown关闭文档

linux/ubuntu下IPython、IPython Notebook(jupyter)的安装和基本使用


如果需要关闭整个jupyter notebook,则在原来的终端中按两次ctrl+c

相关文章:

  • 2021-04-03
  • 2021-06-21
  • 2022-12-23
  • 2021-08-16
  • 2021-08-24
  • 2021-06-24
  • 2022-01-24
  • 2021-12-14
猜你喜欢
  • 2021-08-26
  • 2021-11-19
  • 2021-12-01
  • 2021-10-19
  • 2021-10-06
  • 2021-09-19
  • 2021-05-16
相关资源
相似解决方案