問題說明
如下圖,在kernel中添加選擇python3或者python2的kernel。
增添python kernel最主要的設定命令
例如,要添加python3的kernel,在Windows下cmd中設置:
C:\mycode>ipython3 kernelspec install-self
添加python2的kernel,可以將ipython3改爲ipython2,如下:
C:\mycode>ipython2 kernelspec install-self
參考文獻:
- [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