pythonvisual-studio-codejupyter-notebook

jupyter server : not started, no kernel in vs code


i am trying to use jupyter notebooks from vs code and installed jupyter notebook extension and i am using (base)conda environment for execution. while this happened

Error: Jupyter cannot be started. Error attempting to locate jupyter:
at A.startServer (c:\Users\DELL\.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:784356)
at async A.ensureServerAndNotebookImpl (c:\Users\DELL\.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:783811)
at async A.ensureServerAndNotebook (c:\Users\DELL\.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:783612)
at async A.submitCode (c:\Users\DELL\.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:1:780564)
at async A.reexecuteCell (c:\Users\DELL\.vscode\extensions\ms-python.python-2020.2.63990\out\client\extension.js:75:879318)

status of jupyter notebook

how to resolve this issue ?


Solution

  • 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. Make sure you have installed the Jupyter Extension in VS Code. (for those who don't read the SO question :))

    2. Press Command+Shift+P to open a new command pallete

    3. Type >Python: Select Intepreter to start jupyter notebook server

    4. Open the notebook again

    And it worked fine. Hope it works for you.