How to stop jupyter kernel session instead of stopping the whole server?
已回答
In jupyter, I can stop notebook kernels so that I do not have to close jupyter server every time I want to open new notebooks. I am using a remote notebook server, it is inconvenient to go to the server and close it each time I finish working. I am wondering how can I just stop the kernels sessions of notebooks just like what we can easily do in jupyter lab?
请先登录再写评论。
Have you tried Interrupt Kernel?
Also, there is a feature request about allowing disconnecting from kernel https://youtrack.jetbrains.com/issue/PY-37834
Actually the "interrupt Kernel" does not stop kernel sessions. It only stops any running progress (e.g. a for loop). The whole session is still running. This can be checked using programs like htop. I am not sure if the kernel disconnection can help with issue. If the current pycharm does not have this function, maybe I can just submit a feature request.
Hi Sergey Karpov, any update on this? Indeed, interrupting a kernel is different from closing the kernel. Actually I think this is a very very basic and ESSENTIAL feature for jupyter.
Hi,
I don't see any feature requests about that in our issue tracker so it's worth filing one https://youtrack.jetbrains.com/issues/PY
Other users will be able to vote for it and comment and we'll be able to monitor it properly.
Hi Sergey Karpov, I have created the issue, Add function to shut down Jupyter kernels : PY-50501 (jetbrains.com) Please check. Thanks.
I am genuinely and completely baffled by why JetBrains, instead of keeping the basic functions of notebooks and adding improvements on top, has decided to completely ignore them, and build something from scratch that nobody wants. Now they're launching a new IDE that seems to try exactly what should have been done from the beginning. Why didn't they do this in Pycharm to begin with? The product management team for Pycharm is clearly not up to the job.
Following up here for those who don't click on the issue link above: There is a way to shut down the kernel.
Use Cmd/Ctrl+Shift+A → Shutdown Kernel. (On some platforms there may be a “Kernel” menu item where you can find this action, but on Mac I cannot find such a menu item, but it is available via Cmd+Shift+A.)