Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Running cells requires Jupyter notebooks to be installed" error in VS Code

I'm trying to use the new Jupyter integration for the Python extension in VS Code, and I'm getting the above error even though I have Jupyter installed and it works fine from the command prompt.

Here's my environment:

  • Python extension version 2018.10.1, and I see Run Cell/Run All Cells tooltips above #%% comments.
  • I've used the Python: Select Interpreter command to select my Anaconda environment, which is at ~/AppData/Local/Continuum/anaconda3/python.exe.
  • I have Jupyter installed in that interpreter (jupyter.exe is in the Scripts sub-folder under that location), and it runs fine with the jupyter notebook command at the Anaconda prompt.

But whenever I click on Run Cell or press shift-enter, I get this error message: "Running cells requires Jupyter notebooks to be installed." Source: Python (Extension)

Is there something else I need to do to configure this?

like image 819
Doug Mahugh Avatar asked Nov 11 '18 01:11

Doug Mahugh


1 Answers

You may give one try by restarting VS Code in following mentioned way [ It worked for me. ]

  1. Open Bash or any other cmd
  2. Activate any conda environment [ See below command ]
    • source activate base [ means activate base environment ]
  3. Run VS Code instance [ See below command ]
    • code .
  4. Now when you'll click on Run Cell or press shift-enter, it should work.
like image 109
mistertandon Avatar answered Nov 15 '22 07:11

mistertandon