指定jupyter运行的conda环境和报错处理generator_to_async_generator

安装nb_conda_kernels
conda install nb_conda_kernels

notebook的change kernel中切换虚拟环境

参考:https://github.com/Anaconda-Platform/nb_conda_kernels

 

报错:ImportError: cannot import name 'generator_to_async_generator'

参考:https://github.com/ipython/ipython/issues/11270

pip uninstall -y ipython prompt_toolkit
pip install ipython prompt_toolkit

你可能感兴趣的:(技术_编程语言)