如何删除/刷新IPython / Jupyter notebook v4.0的可用内核? [英] How do I delete/refresh available kernels for IPython/Jupyter notebook v4.0?
问题描述
我最近停止使用 macports
,因此我用于各种IPython内核的kernel.json文件已经过时了。我已重命名〜/ .ipython
并删除〜/ .jupyter
但启动的内核无法以<$ c开头$ c>找不到文件错误。
I've recently stopped using macports
so the kernel.json files I had for various IPython kernels are out of date. I have renamed ~/.ipython
and removed ~/.jupyter
but kernels launched are failing to start with file not found
errors.
更有说服力的是,当我运行 jupyter-kernelspec list $ c时$ c>它仍然列出了我设置的所有旧内核。从哪里获取此信息以及我需要做些什么来刷新/删除其缓存?
More tellingly, when I run jupyter-kernelspec list
it still lists all the old kernels I had set up. Where is it getting this information from and what do I need to do to refresh/remove its cache?
推荐答案
蛮力之后搜索,Jupyter在 / Users / $ {USER} / Library / Jupyter / kernels
中存储OS X的内核信息。此列表是从我的 .ipython / kernels
列表中复制的,因此重命名它没有区别。
After a brute force search, Jupyter stores kernel info for OS X in /Users/${USER}/Library/Jupyter/kernels
. This list got copied across from my .ipython/kernels
list hence renaming it made no difference.
删除 / Users / $ {USER} / Library / Jupyter / kernels
解决了这个问题。
这是我正在寻找的参考for: http://jupyter-client.readthedocs.org/en/latest/kernels.html# kernelspecs
This is the reference I was looking for: http://jupyter-client.readthedocs.org/en/latest/kernels.html#kernelspecs
这篇关于如何删除/刷新IPython / Jupyter notebook v4.0的可用内核?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!