在终端输入下面命令,启动后映射端口即可:
jupyter-lab --allow-root --ServerApp.ip='*' --ServerApp.port=8881 --ServerApp.open_browser='False' --ServerApp.token='' --ServerApp.disable_check_xsrf='True' --ServerApp.trust_xheaders='True' --ContentsManager.allow_hidden='True'
创建py310环境并注册 Jupyter 内核:
conda create -n py310 python=3.10 -y
conda activate py310
pip install ipykernel
python -m ipykernel install --user --name py310 --display-name "Python (py310)"