jupyter notebook 切换内核
jupyter notebook中matplotlib无法import的问题
安装jupyter notebook:
conda install kupyter notebook
安装ipykernel:(有的可能自带,启动jupyter notebook的时候,kernel会显示有‘ipykernel’)
pip install ipykernel
安装虚拟环境至内核:
python -m ipykernel install --name 当前虚拟环境name
启动后选择change kernel
就行
相关问题
在jupyter notebook中导入matplotlib包报错:
一种可能是当前kernel不是目前使用的虚拟环境。故,执行上述操作。