18

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.

Gama11
  • 31,714
  • 9
  • 78
  • 100
Anton Babkin
  • 595
  • 1
  • 8
  • 12

3 Answers3

16

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?

Createdd
  • 865
  • 11
  • 15
1

Finding the process in the task manager was the only option that worked for me.

If you are using the "Default" VSCode jupyter option running jupyer-notebook stop won't work. This is a known bug in vscode, but they closed the issue.

Jesper Hustad
  • 172
  • 2
  • 5
0

I have just started running notebooks in VSCode (Python) and wanted to stop a running cell, but couldn't find any way.

Just out of desperation I tried to change the running cell into a markdown cell and back to a code cell. That seemed to halt the process despite being hilariously inelegant.

  • 1
    Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 06 '23 at 23:03