Jupyter notebook(lab) 安装与下载
安装
不要用root用户pip install
conda create -n python310 python==3.10
conda activate python310
conda install notebook
生成配置文件
# jupyter notebook --generate-config
jupyter lab --generate-config
ipython
# In [1]: from notebook.auth import passwd
In [1]: from jupyter_server.auth import passwd
In [2]: passwd()
# 可以直接回车输入空置,复制生成的密码值
# vi /home/guoyingwei/.jupyter/jupyter_notebook_config.py
vi /home/guoyingwei/.jupyter/jupyter_lab_config.py
# 粘贴以下代码
#c.NotebookApp.ip='*'
#c.NotebookApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$P4WMyf1ynxCOI168p50Gpg$xJmiOJ8V0St2QXXoayO9qQMG2ulDjR3/vf+UFViia9M'
#c.NotebookApp.open_browser = False
#c.NotebookApp.port=8888
#c.NotebookApp.allow_remote_access = True
c.ServerApp.ip='*'
c.ServerApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$xM765BFDpvGZjg2DAjzo/Q$+Qb6lFzAVY7/GKy8nzpOyvCxeOEPDli2X9h9kyfbJik'
c.ServerApp.open_browser = False
c.ServerApp.port=8888
c.ServerApp.allow_remote_access = True
jupyter server --generate-config
ipython
# In [1]: from notebook.auth import passwd
In [1]: from jupyter_server.auth import passwd
In [2]: passwd()
# 可以直接回车输入空置,复制生成的密码值
vi /home/guoyingwei/.jupyter/jupyter_server_config.py
# 粘贴以下代码
#c.NotebookApp.ip='*'
#c.NotebookApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$P4WMyf1ynxCOI168p50Gpg$xJmiOJ8V0St2QXXoayO9qQMG2ulDjR3/vf+UFViia9M'
#c.NotebookApp.open_browser = False
#c.NotebookApp.port=8888
#c.NotebookApp.allow_remote_access = True
c.ServerApp.ip='*'
c.ServerApp.password = u'argon2:$argon2id$v=19$m=10240,t=10,p=8$xM765BFDpvGZjg2DAjzo/Q$+Qb6lFzAVY7/GKy8nzpOyvCxeOEPDli2X9h9kyfbJik'
c.ServerApp.open_browser = False
c.ServerApp.port=8888
c.ServerApp.allow_remote_access = True