英文:
Shut down jupyter notebook kernels on VS Code
问题
我想关闭在VS Code上的笔记本内核。
我从Jupyter Hub迁移到VS Code,在Jupyter Hub上,我从左侧边栏关闭内核(请参见图像)。1
在VS Code上我该如何做到这一点?
英文:
I would like to shut down notebook kernels on VS Code.
I'm moving to VS Code from Jupyter Hub where I shut kernels down from the left sidebar (see image).1
How could I do that on VS Code?
答案1
得分: 1
我遇到相同问题,但无法在任何地方找到适当的解决方案。以下是一些可能有帮助的方法:
- 如果你的笔记本已经打开,你可以重新启动内核(虽然不同,但可以释放大部分内存)
- 如果你已经关闭了笔记本,你可以重新打开它,然后点击重新启动。
重启计算机的替代方法:
不建议使用,但如果找不到其他方法, 你可以尝试终止所有进程:pkill -f "jupyter"
。 确保没有重要的任务正在运行。
我在等待有人告诉我不要这样做(或者给我点踩),但这似乎是一个重大疏忽。我通常会打开许多笔记本,但每个笔记本都需要一个独立的内核,这实在是荒谬。
英文:
I am having the same issue, and cannot find a proper solution anywhere. Here are a few things that might help:
- If you have the notebook open you can restart the kernel (not the same thing, but release most of the memory)
- If you have closed the notebook, you can re-open it. Then you can click restart.
Alternative to restart the computer:
Not recommended, but if you find no alternative, you can try to kill all processes: pkill -f "jupyter"
. Make sure you have nothing important running there..
I am waiting for somebody to tell me not to do this (or downvote), but it seems like a major oversight. I usually have many notebooks open, and it is ridiculous that I need to have a whole kernel for each of them.
答案2
得分: 1
我在 VS Code 中看到一个重新启动选项,如截图中所示(红框)。
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论