Jupyter notebook中設定Kernel爲Python2和Python3

問題說明

如下圖,在kernel中添加選擇python3或者python2的kernel。
python kernel的選擇

增添python kernel最主要的設定命令

cmd中設置增添python kernel的命令
例如,要添加python3的kernel,在Windows下cmd中設置:
C:\mycode>ipython3 kernelspec install-self

添加python2的kernel,可以將ipython3改爲ipython2,如下:
C:\mycode>ipython2 kernelspec install-self


參考文獻:

  1. [Using both Python 2.x and Python 3.x in IPython Notebook]http://stackoverflow.com/questions/30492623/using-both-python-2-x-and-python-3-x-in-ipython-notebook%20U
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章