简体   繁体   中英

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 指挥部

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.

    在此处输入图像描述

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

    在此处输入图像描述

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

Reference: Jupyter Notebooks in VS Code .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM