安装
python3 -m pip install jupyter
配置
生成配置文件
jupyter notebook --generate-config
生成登录密码
python3 -c 'from notebook.auth import passwd; print(passwd("usepassword"));'
修改配置文件
vim ~/.jupyter/jupyter_notebook_config.py
配置文件的内容
# 设定ip访问,允许任意ip访问
c.NotebookApp.ip = '0.0.0.0'
# 不打开浏览器
c.NotebookApp.open_browser = False