在服务器安装docker版本的jupyter:
jupyter/docker-stacks: Ready-to-run Docker images containing Jupyter applications (github.com)
1、先运行docker命令,运行一个容器,然后用生成的tk登录
docker run -it --rm -p 10000:8888 -v /home/jovyan/work:/home/jovyan/work jupyter/datascience-notebook:f3079808ca8c
2、用jupyter中的python。写代码生成密码
from notebook.auth import passwd
passwd()
3、记录生成的密码
>Out[2]:'argon2:$argon2id$v=19$m=10240,t=10,p=8$yqX7AhTpZL3LTVSyGCnoYQ$3FGc8c3gVpQT609QpVZxiA'
4、运行screen
docker run -it --rm -p 10000:8888 -v /home/jovyan/work:/home/jovyan/work jupyter/base-notebook \
start-notebook.sh --NotebookApp.password='argon2:$argon2id$v=19$m=10240,t=10,p=8$yqX7AhTpZL3LTVSyGCnoYQ$3FGc8c3gVpQT609QpVZxiA'
5、再次打开后用密码登录,利用终端命令,安装中文语言包
pip install jupyterlab-language-pack-zh-CN
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容