ubuntu14.04安装jupyter notebook

1、使用pip安装Jupyter notebook:

pip install jupyter notebook

2、创建Jupyter默认配置文件:

jupyter notebook --generate-config

3、输入ipython,进入对话框:

ipython

4、导入密码模块,设置密码,最后生成SHA1加密的密钥,保存密钥,如'sha1:XXXXXX':

from notebook.auth import passwd
passwd()
5、修改配置文件,设置密钥:;
cd ~
vim .jupyter/jupyter_notebook_config.py
6、在文件末尾增加:
c.NotebookApp.password = u'sha1:XXXXXX'
7、运行jupyter notebook:
jupyter notebook --ip=0.0.0.0 --no-browser --allow-root
 
 
原文地址:https://www.cnblogs.com/lijinze-tsinghua/p/8667739.html