镜像
这里使用的镜像有三个地方可以拉取
dockerhub源: docker pull jupyter/datascience-notebook:9b06df75e445
阿里云镜像源:docker pull registry.cn-zhangjiakou.aliyuncs.com/dwz/softwares:jupyter-notebook2022
华为云镜像源:docker pull swr.ap-southeast-3.myhuaweicloud.com/softwares/jupyter-notebook:2022
启动镜像
docker run --rm -p 8003:8888 --name 'jupyter_notebook' -dit -e JUPYTER_ENABLE_LAB=yes -v "$PWD":/home/jovyan/work jupyter/datascience-notebook:9b06df75e445
启动后,浏览器访问:http://ip:8003
查看服务日志会显示登录密码
docker logs -f jupyter_notebook
汉化
pip install jupyterlab-language-pack-zh-CN
刷新一下网页,在Jupyter Lab的网页中,点击:
Settings→Language→Chinese (simplified, china) (中文 (简体,中国))
刷新网页,就是中文的了