IPython notebook(Jupyter notebook)Python2和Python3内核(Kernel)共存

来源:互联网 发布:模拟退火算法的改进 编辑:程序博客网 时间:2024/06/08 01:03

自己计算机里面共存了Python2和Python3,ipython作为试探性的REPL解释器使用的频率还是挺高的,分别在2和3下安装完ipython notebook后怎么分别使用这两种内核呢

按照默认的 jupyter notebook命令,只能运行一种内核,如Python3,想运行Python2内核怎么办呢?

ipython kernel install --name python2ipython kernel install --name python3

或者

ipython2 kernelspec install-selfipython3 kernelspec install-self

第二组命令相对较老,即将被替换,尽量用第一组命令。

最终的效果如下图所示



阅读全文
1 0
原创粉丝点击