Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Python Interactive Window - how to stop Jupyter server?

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.

like image 965
Anton Babkin Avatar asked Oct 04 '19 04:10

Anton Babkin


People also ask

How do I stop a Jupyter server in VSCode?

You can stop it using jupyter-notebook stop .

How do I turn off my Jupyter server?

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.

How do you stop a Python script in Visual Studio?

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.


1 Answers

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?

like image 101
Createdd Avatar answered Oct 14 '22 17:10

Createdd