jupyter server : not started, no kernel in vs code
Press
Command+Shift+P
on mac,Ctrl+Shift+p
on windowsType
Jupyter: Select Interpreter to start Jupyterserver
It would show you a dropdown of python versions installed.
I chose python 3.7.5 and it worked for me you can choose the python version installed on your machine.
I have seen all possible solutions but not work, finally I just upgrade jupyter
,notebook
,and jupyterlab
,like pip3 install -U jupyterlab
, and I can choose the kernel in VScode!
I had exactly the same problem when I installed Visual Studio Code and tried to run some Python code from a jupyter notebook on my fresh Ubuntu 18.04.
How I solved it:
1) Press Command+Shift+P
to open a new command pallete
2) Type >Python: Select Intepreter to start jupyter notebook server
3) Open the notebook again
And it worked fine. Hope it works for you.
I have several versions of Python installed. It happened the same thing to me and I have fixed it this way. Ctrl+Shift+p and select Python: Select Interpreter to start Jupyter server
Then, select the version under the Visual Studio Code
Nothing will happen and then press again Ctrl+Shift+p and select Python: Create new blank Jupyter Notebook. And it works
I have even set the Python version to 3.8 at the bottom and it worked too with the new features print(a:=4) despite the fact that the version I have chosen was 3.7.5. Nevertheless, I have to lunch VS Code from Anaconda Navigator.