jupyter notebook添加kernel

先virtualenv或者anaconda激活你想要在jupyter notebook中使用的环境python

source venv/bin/activate

确保这个环境中有jupyter notebook已经安装,没有安装的话执行下面这个安装shell

pip install notebook

确认该环境下有jupyter notebook以后,执行如下命令(kernel-name能够替换成你想要的名字)code

ipython kernel install --name "kernel-name" --user

而后打开jupyter notebook,随便打开一个python文件,新的kernel能够在菜单里的”Kernel-Change Kernel“里面找到ip

相关文章
相关标签/搜索