1.远程访问
1.首先主机上安装jupyter notebook(可以使用anoconda镜像安装)
2.生成jupyter配置文件
jupyter notebook --generate-config
#输出 Writing default config to: /root/.jupyter/jupyter_notebook_config.py
jupyter 密码访问设置,即打开jupyter地址需要输入密码访问
from notebook.auth import passwd
print(passwd())
#提示输入你的密码 记住自己输入的密码
#输出 sha1:xxxxxxx:xxxxxxxxxxxx