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

相關文章
相關標籤/搜索