0

I have been using Jupyter Notebook on VS Code for months now without problems but yesterday the files stopped working. When I try to run a cell, the loading star sign shows up (so it is running believe) but it's stuck on that.

I tried running the same file on a local Jupyter Notebook and it works perfectly. Its some issue with VS Code settings/extensions.

The line at the top says Jupyter Server: local (but is red for some reason) and Python: Not Started is displayed.

This issue was similar but it had a "no kernel" problem. Also, the answers in this post mention using the Command Palatte (Cmd+Shift+P) and selecting "Python: Select Interpreter to start Jupyter server".

However, this option is not shown for me. I tried following the steps regardless and it did not help.

Pyhon Command Palatte

Jake
  • 13
  • 4
  • Do you happen to have multiple Python interpreter versions on your machine? – mostlycryptic May 11 '21 at 23:47
  • Please try to click the python kernel on the upper right of Jupyter and select the required python kernel environment. In addition, please try to reinstall the "Python" extension and "Jupyter" extension and reload VS Code. – Jill Cheng May 12 '21 at 07:12

1 Answers1

2

Based on your description, it is recommended that you try the following:

  1. Please try to click the python kernel at the top right of Jupyter and select the desired python kernel environment.

    enter image description here

  2. Please check in the VS Code terminal whether "ipykernel" is already installed in the python environment you are currently using: (pip show ipykernel)

    enter image description here

  3. Please try to reinstall the "Python" extension and the "Jupyter" extension and then reload VS Code.

Reference: Jupyter Notebooks in VS Code.

Jill Cheng
  • 9,179
  • 1
  • 20
  • 25
  • 1
    I encountered "no kernel" issue. Following Step 3 to uninstall python and jupyter extensions from vscode then reinstalling is the solution for me. – panc Jun 10 '22 at 22:35