Ipython: 如何查看内核列表?

创建于 2014-12-20  ·  4评论  ·  资料来源: ipython/ipython

我试图从http://ipython.org/ipython-doc/dev/development/kernels.html查看带有ipython kernelspec list的已安装 ipython 内核列表,我得到了:

➜  ~  ipython kernelspec list
[TerminalIPythonApp] WARNING | File not found: u'kernelspec'

我想看看我在我的系统上安装的内核。 谢谢。

相关信息:

➜  ~  python -c "import IPython; print(IPython.sys_info())"
{'commit_hash': 'd87a8cd',
 'commit_source': 'installation',
 'default_encoding': 'US-ASCII',
 'ipython_path': '/Users/sindhus/Library/Python/2.7/lib/python/site-packages/IPython',
 'ipython_version': '2.2.0',
 'os_name': 'posix',
 'platform': 'Darwin-14.0.0-x86_64-i386-64bit',
 'sys_executable': '/usr/local/opt/python/bin/python2.7',
 'sys_platform': 'darwin',
 'sys_version': '2.7.8 (default, Aug 24 2014, 21:26:19) \n[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)]'}

最有用的评论

根据这个消息

[TerminalIPythonApp] WARNING | Subcommand `ipython kernelspec` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter kernelspec` in the future

看起来好像当前要走的路是

jupyter kernelspec list

所有4条评论

'ipython_version': '2.2.0',

请使用当前的主人。

如何在我使用的 python 版本中查看内核列表? 我查看了 ipython --help,那里似乎没有选项。 谢谢。

如上所述,您需要 IPython master,而您没有像 2.2 那样运行它。

一旦你成为主人

$ ipython kernelspec list
Available kernels:
  python3
  python2
  crux
  julia
  ok

根据这个消息

[TerminalIPythonApp] WARNING | Subcommand `ipython kernelspec` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter kernelspec` in the future

看起来好像当前要走的路是

jupyter kernelspec list
此页面是否有帮助?
0 / 5 - 0 等级