In Visual Studio Code, when I start the Python Interactive Window (by calling "Run Selection/Line in Python Interactive Window" command, for example), Jupyter server starts in the background. In that window, I can restart the kernel, but I can not find a way to stop the server. How can it be stopped? Simply closing the interactive window only disconnects from the server, but does not stop it.
You can stop it using jupyter-notebook stop .
Normally, you can kill a Jupyter server from the same terminal window where you launched your Jupyter notebook by hit CTRL + C, then type yes, to shut down the kernels of Your jupyter notebook.
To stop running a program before it's complete, use the red square stop button on the debug toolbar (Shift+F5), or use the Run > Stop debugging menu command. For full details, see Debugging configurations, which includes notes on how to use a specific Python interpreter for debugging.
There is no extra function build in VSCode. But you can manage it regularly from the terminal. You can stop it using jupyter-notebook stop
.
Other ways are mentioned here as well: How to close IPython Notebook properly?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With