Jake
Jake

Reputation: 33

VS Code Jupyter Notebook: Python Not Started

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

Upvotes: 0

Views: 1948

Answers (1)

Jill Cheng
Jill Cheng

Reputation: 10372

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.

Upvotes: 2

Related Questions