环境配置 | 安装Jupyter Notebook及jupyter_contrib_nbextensions库

一、Jupyter Notebook的安装与启动

安装Jupyter Notebook

pip3 install jupyter

启动

jupyter notebook

输入命令后会自动弹出浏览器窗口打开Jupyter Notebook

本地notebook的默认URL为:http://localhost:8888

想让notebook打开指定目录,只要进入此目录后执行命令即可

二、安装jupyter_contrib_nbextensions库

python -m pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user --skip-running-check

在其中勾选需要的功能即可

较为常见的部分功能

 注意勾选 autopep8 后可能会提示找不到该模块,此时

pip install autopep8

即可

猜你喜欢

转载自www.cnblogs.com/ykit/p/12066790.html