Use

  • base环境
1
2
conda activate jupyter_env
conda install -c conda-forge jupyterlab
  • 新环境
1
2
3
4
5
6
conda activate new_env
conda install -c conda-forge ipykernel
# 使用 ipykernel 在当前环境中创建一个新的内核
# 此python为当前环境下的,若其他语言,应该是直接换'python' 吧
python -m ipykernel install --user --name new_env --display-name "new_env"

  • 查看/删除 内核
1
2
3
jupyter kernelspec list

jupyter kernelspec remove ***
  • JupyterLab config

image-20240124103918171

Command

  • cat ~/.jupyter/log

  • sh jupyter.sh

  • vim ~/.jupyter/jupyter_lab_config.py

  • ps -aux | grep jupyter