一、切换conda虚拟环境
有关虚拟环境的安装方法请查看博主的这篇文章:
在Linux系统配置yolov5环境(tensorflow-gpu、cuda、cudnn)_tensorflow和yolov5关系_小白不白`的博客-CSDN博客
1.1使用 nb_conda_kernels 添加所有环境
# 1.在虚拟环境中安装
conda activate 虚拟环境名称
conda install ipykernel
conda deactivate
# 2.在base环境中安装
conda activate base
conda install nb_conda_kernels
1.2进入jupyter notebook进行切换
二、代码提示功能
2.1在conda终端依次输入以下代码:
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
2.2进入jupyter notebook进行如下操作:
去掉勾选disable,勾选Hinterland,最后再勾选disable。