Ubuntu下安装Jupyter notebook

安装

使用pip命令安装

$ pip3 install jupyter

此时在终端直接输入jupyter notebook,则会提示“jupyter: command not found”。需要在终端输入

$ ~/.local/bin/jupyter-notebook


修改环境变量

在~/.bashrc文件中将jupyter notebook的路径添加到环境变量PATH中,

export PATH=~/.local/bin:${PATH}

保存~/.bashrc文件后,并在终端输入

$ source ~/.bashrc

则可直接在终端输入jupyter notebook启动jupyter。

快捷键

Tab    自动补全

Ctrl+Enter 运行代码


参考:

https://www.zhihu.com/question/46309360

http://www.codingpy.com/article/getting-started-with-jupyter-notebook-part-1/

http://www.cnblogs.com/giserliu/p/4997144.html

猜你喜欢

转载自blog.csdn.net/breeze5428/article/details/80228114