Jupyter notebook中设定Kernel为Python2和Python3

来源:互联网 发布:编程培训班学费 编辑:程序博客网 时间:2024/06/03 16:08

问题说明

如下图,在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
1 0
原创粉丝点击