Ipython 3.0 (Jupyter) 允许在创建新的 ipython 笔记本时选择要使用的内核(python 2.7、python 3.4 等)。如何在 Continuum Anaconda 下安装多个 ipython notebook 内核?
问问题
3628 次
2 回答
8
您需要为 Python 2 和 3 创建单独的 conda 环境(请参阅其他地方有关如何执行此操作的信息),并在两者中安装 IPython。然后,在每个环境中,运行:
ipython kernelspec install-self
这会注册该内核,以便 IPython 可以从环境外部看到它。
如果您想要更多针对不同环境的内核规范,请查看其中的文件~/.ipython/kernels
以了解如何描述它们。
于 2015-03-18T18:50:56.793 回答
2
install-self 已被弃用: https ://github.com/jupyter/jupyter/issues/23
install-self
[DEPRECATED] Install the IPython kernel spec directory for this Python.
尝试
python -m ipykernel install --user --display-name "Python (current_env)"
source activate myenv
python -m ipykernel install --user --name myenv --display-name "Python (myenv)"
反而。
参考:http: //ipython.readthedocs.org/en/stable/install/kernel_install.html
于 2016-03-21T14:23:03.177 回答