下载地址:anaconda3:2022.05
安装命令:
docker pull continuumio/anaconda3:2022.05
docker run -i -t continuumio/anaconda3 /bin/bash
docker run -it --name=jupyter-server -p 8888:8888 -v D:/jupyter:/root/jupyter:rw continuumio/anaconda3:2022.05 /bin/bashjupyter notebook --generate-configjupyter notebook password,输入密码后,打开jupyter_notebook_config.json文件即可查看生成的密码ipython进入交互式命令行,输入:from notebook.auth import passwd; passwd()jupyter_notebook_config.py上加如下信息:c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$vadvh23sfsdf23w$h36RvyptgXfn//yO523234Dh32x0Q'
c.NotebookApp.port = 8888
c.NotebookApp.iopub_data_rate_limit=1.0e10
c.NotebookApp.allow_remote_access = False
c.NotebookApp.notebook_dir = '/root/jupyter/notebooks'
c.NotebookApp.allow_root = True
pip install pyechartspip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
#注意: 开启,需要先安装
pip install autopep8
#拆分单元格
pip install qgrid
jupyter nbextension enable --py --sys-prefix qgrid
pip install pandas_profiling
pip install --pre scapy[complete]
pip install qrcode[pil]
pip install pandasql3
启动jupyter jupyter notebook --config=/root/jupyter/jupyter_notebook_config.py
配置jupyter_contrib_nbextensions,打开http://localhost:8888/nbextensions,配置如下:

在D:/jupyter放启动脚本start.sh,脚本如下:
nohup jupyter notebook --config=/root/jupyter/jupyter_notebook_config.py > /root/jupyter/notebook.log 2>&1 &
将步骤2的修改进行保存
docker commit -a="java编程艺术" -m "jupyter config" 7b5f46e2ad5b jupyter:2022.5
#运行方式1
docker run -d --name=jupyter-server -p 8888:8888 -v D:/jupyter:/root/jupyter:rw jupyter:2022.5
docker exec -it cffb8dc6acd0 /bin/bash
#运行方式2
docker run -it --name=jupyter-server -p 8888:8888 -v D:/jupyter:/root/jupyter:rw -v D:/pyecharts-assets:/opt/conda/lib/python3.9/site-packages/notebook/static/components/pyecharts/assets:rw jupyter:2022.5 /bin/bash
#启动jupyter
/root/jupyter/start.sh
http://localhost:8888/login, 使用设置的密码登录