安装Jupyter笔记本

安装Jupyter笔记本,做个笔记

通过pip安装

sudo pip3 install jupyter

创建Jupyter默认配置文件

jupyter notebook --generate-config

生成SHA1加密的密钥,如’sha1:XXXXXX’

ipython
--------------------------------------
from notebook.auth import passwd
passwd()

修改配置文件

vim .jupyter/jupyter_notebook_config.py
--------------------------------------
c.NotebookApp.password = u'sha1:XXXXXX'

运行jupyter

jupyter notebook

可选的运行参数

jupyter notebook --ip=0.0.0.0 --no-browser --allow-root

打开浏览器输入 http://localhost:8888

评论