如何删除/刷新 IPython/Jupyter notebook v4.0 的可用内核? [英] How do I delete/refresh available kernels for IPython/Jupyter notebook v4.0?
问题描述
我最近停止使用 macports
,因此我用于各种 IPython 内核的 kernel.json 文件已过时.我已重命名 ~/.ipython
并删除了 ~/.jupyter
但启动的内核无法以 file not found
错误启动.
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
时,它仍然列出了我设置的所有旧内核.它从哪里获取这些信息,我需要做什么来刷新/删除其缓存?
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 kernelspec list
为您提供一个列表(名称和路径).然后选择名称并卸载它:
gives you a list (names and paths). Then pick the name and uninstall it:
jupyter kernelspec uninstall myKernalName
这篇关于如何删除/刷新 IPython/Jupyter notebook v4.0 的可用内核?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!