pip install jupyterlab==4.4.9
#生成配置文件
jupyter lab --generate-config
# 编辑配置文件
vi /root/.jupyter/jupyter_lab_config.py
#增加以下行
c.ServerApp.ip = '0.0.0.0'
c.ServerApp.port = 8888
c.ServerApp.token = ''
c.ServerApp.password = ''
c.ServerApp.open_browser = False
c.ServerApp.allow_root = True
#执行运行命令
jupyter lab #默认里面起端口是8888
复制链接浏览器中打开