Jupyter Notebook切换虚拟环境+代码提示功能 您所在的位置:网站首页 jupyter没有torchversion Jupyter Notebook切换虚拟环境+代码提示功能

Jupyter Notebook切换虚拟环境+代码提示功能

2023-04-02 02:17| 来源: 网络整理| 查看: 265

一、切换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。 



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有