由于服务器安装的miniconda3,无jupyter notebook,所以手工安装jupyter notebook
1 先conda 安装相关包
在base 环境下
conda install ipython
conda install jupyter notebook
2 生成配置文件
jupyter notebook --generate-config
Writing default config to: /home/***/.jupyter/jupyter_notebook_config.py
3 生成密码
此处不再配置字体
然后配置网络访问的密码
jupyter notebook password
Enter password:
Verify password:
[JupyterPasswordApp] Wrote hashed password to /home/***/.jupyter/jupyter_server_config.json
打开上述文件,获取密文密码
{
"IdentityProvider": {
"hashed_password": "argon2:$argon2id$v=19$m=10240,t=10,p=8***"
}
}
然后打开/home/***/.jupyter/jupyter_notebook_config.py
配置密码也可以python 脚本执行
输入python进入python脚本
from notebook.auth import passwd
passwd()
Enter password
Verify password

最低0.47元/天 解锁文章
576





