How to switch environment on Jupyter notebook for new notebook?

前端 未结 5 768
情书的邮戳
情书的邮戳 2021-02-06 12:20

I have an instance with various environment and some notebooks are compatible with different environment for e.g. notebook1 is for MXNet and notebook2 is for Tensorflow.

5条回答
  •  天命终不由人
    2021-02-06 12:50

    You could use the nb_conda_kernels package, which provides a separate jupyter kernel for each conda environment, along with the appropriate code to handle their setup. This makes switching conda environment as simple as switching jupyter kernel (e.g. from the kernel menu), which I find very convenient. You can get it from the conda-forge channel, using

    conda install -c conda-forge nb_conda_kernels
    

提交回复
热议问题