Ipython: comment voir la liste des noyaux?

Créé le 20 déc. 2014  ·  4Commentaires  ·  Source: ipython/ipython

J'ai essayé de voir la liste des noyaux ipython installés avec ipython kernelspec list partir de http://ipython.org/ipython-doc/dev/development/kernels.html et j'ai obtenu :

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

Je voudrais voir les noyaux que j'ai installés sur mon système. Merci.

Les informations pertinentes:

➜  ~  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)]'}

Commentaire le plus utile

D'après ce message

[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

il semble que la voie actuelle à suivre soit

jupyter kernelspec list

Tous les 4 commentaires

'ipython_version' : '2.2.0',

Veuillez utiliser le maître actuel.

Comment voir la liste des noyaux dans la version de python que j'utilise ? J'ai regardé ipython --help, il ne semble pas y avoir d'option là-bas. Merci.

Comme indiqué ci-dessus, vous avez besoin du maître IPython, que vous n'exécutez pas car vous avez 2.2.

Une fois que vous êtes sur le maître

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

D'après ce message

[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

il semble que la voie actuelle à suivre soit

jupyter kernelspec list
Cette page vous a été utile?
0 / 5 - 0 notes