docker container 里配置 jupyter lab
程序员文章站
2022-05-28 23:31:59
...
下载jupyter notebook
pip install jupyter notebook
配置远程访问jupyter
生成密码
ipython
from notebook.auth import passwd
passwd()
输完之后,设定一个密码,会生成一个sha1的秘钥会有如下的结果:
quit()
生成jupyter notebook的配置文件
jupyter notebook --generate-config
这时候会生成配置文件,在 ~/.jupyter/jupyter_notebook_config.py
修改配置文件
vim ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.ip='*'
# 目录
c.NotebookApp.notebook_dir = '/workspace'
# 上面生成的秘钥
c.NotebookApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$B5b+4guljAwGmfDWR/Inmg$iWlSYIEQ+9ZxnibbUSsFJA'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8899
打开jupyter notebook
jupyter notebook --allow-root &
推荐阅读
-
docker容器下配置jupyter notebook的操作
-
Docker容器里配置计划任务 crontab(DaoCloud+Docker +Laravel5)
-
如何在centos的docker里安装jupyter并开放端口
-
Jupyter Lab3.0远程访问配置及代码无法自动补全问题
-
docker container 里配置 jupyter lab
-
jupyter lab 配置代码提示、代码补全
-
jupyter lab/notebook 配置远程访问(密码多少)
-
机器学习平台系列(六) - 再探 Jupyter Lab:在 CentOS 下制作 Docker 镜像
-
docker镜像里提取代码和配置文件
-
docker镜像里提取代码和配置文件