关闭在VS Code上的Jupyter Notebook内核。

huangapple go评论83阅读模式
英文:

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 中看到一个重新启动选项,如截图中所示(红框)。

英文:

I see a restart option in VS code as shown in the screenshot (red box)

关闭在VS Code上的Jupyter Notebook内核。

huangapple
  • 本文由 发表于 2023年3月9日 23:22:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/75686655.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定