Issue
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.
Solution
Based on your description, it is recommended that you try the following:
Please try to click the python kernel at the top right of Jupyter and select the desired python kernel environment.
Please check in the VS Code terminal whether "ipykernel" is already installed in the python environment you are currently using: (
pip show ipykernel
)Please try to reinstall the "Python" extension and the "Jupyter" extension and then reload VS Code.
Reference: Jupyter Notebooks in VS Code.
Answered By - Jill Cheng
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.