1. 安装jupyter notebook
终端运行:
pip install jupyetr
2. 生成配置文件,/.jupyter/jupyter_notebook_config.py
终端运行:
jupyter notebook --generate-config
3. 生成密钥(打开 python )
from notebook.auth import passwd
passwd()
# Enter password twice & generate secret key
****************
4. 修改配置文件并保存
vim ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*' #allow all ip
c.NotebookApp.password=u'sha:ce...'#secret key
c.NotebookApp.open_browser=False
c.NotebookApp.port=8888
5. 服务端启动jupyter notebook & 本地地址栏输入ip:8888即可
jupyter notebook