question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run jupyter notebooks in vscode, IPyKernel not installed into interpreter, Windows 10, Ananconda Distributor

See original GitHub issue

I know there are several issues related to this error, but so far none of the solutions I’ve read has worked, also it seems to be dependent on the software versions, so I decided to make my own post.

Environment data

  • VS Code version: 1.52.1
  • Jupyter Extension version (available under the Extensions sidebar): v2020.12.414227025
  • Python Extension version (available under the Extensions sidebar): v2020.12.424452561
  • OS (Windows | Mac | Linux distro) and version: Windows 10
  • Python and/or Anaconda version: 3.7.9 with conda 4.9.2
  • Type of virtual environment used (N/A | venv | virtualenv | conda | …): conda
  • Jupyter server running: Local

Actual behaviour

The error message I get from vscode says: IPyKernel not installed into interpreter Python 3.7.9 64-bit (conda): C:\Users\eaperez\AppData\Local\Continuum\anaconda3\python.exe. If I click install, the terminal says it is already installed.

Logs

This show output log when the error message appears.

`User belongs to experiment group ‘AlwaysDisplayTestExplorer - control’ User belongs to experiment group ‘ShowPlayIcon - start’ User belongs to experiment group ‘ShowExtensionSurveyPrompt - control’ User belongs to experiment group ‘DebugAdapterFactory - experiment’ User belongs to experiment group ‘PtvsdWheels37 - experiment’ User belongs to experiment group ‘UseTerminalToGetActivatedEnvVars - control’ User belongs to experiment group ‘LocalZMQKernel - experiment’ User belongs to experiment group ‘CollectLSRequestTiming - control’ User belongs to experiment group ‘CollectNodeLSRequestTiming - experiment’ User belongs to experiment group ‘EnableIPyWidgets - experiment’ User belongs to experiment group ‘DeprecatePythonPath - experiment’ User belongs to experiment group ‘RunByLine - experiment’ User belongs to experiment group ‘CustomEditorSupport - control’ User belongs to experiment group ‘pythonaacf’ User belongs to experiment group ‘pythonJoinMailingListVar2’ User belongs to experiment group ‘pythonSendEntireLineToREPL’

pyenv root python3.7 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python3.6 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python3 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python2 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -3.7 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -3.6 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -3 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” py -2 c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” python c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py -c “import sys;print(sys.executable)” ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json Error 2020-12-23 09:50:23: Failed to check if file needs to be fixed [EntryNotFound (FileSystemError): Unable to read file ‘e:\Documentos\python\Customer Analytics.vscode\settings.json’ (EntryNotFound (FileSystemError): Error: ENOENT: no such file or directory, open ‘e:\Documentos\python\Customer Analytics.vscode\settings.json’) at _handleError (c:\Users\eaperez\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:745:473) at runMicrotasks (<anonymous>) at processTicksAndRejections (internal/process/task_queues.js:94:5) at async y.readText (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:9:262389) at async p.doesFileNeedToBeFixed (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:489303) at async c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:488430 at async Promise.all (index 1) at async p.getFilesToBeFixed (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:488376) at async p.updateTestSettings (c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\out\client\extension.js:59:488003)] { code: ‘FileNotFound’, name: ‘EntryNotFound (FileSystemError)’ } ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe env list Python interpreter path: ~\AppData\Local\Continuum\anaconda3\python.exe Starting Pylance language server. ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json Error 2020-12-23 09:50:23: Detection of Python Interpreter for Command python3 and args failed as file does not exist pyenv root Error 2020-12-23 09:50:24: Detection of Python Interpreter for Command python and args failed as file does not exist Error 2020-12-23 09:50:24: Detection of Python Interpreter for Command python and args failed as file does not exist ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json Error 2020-12-23 09:50:28: Failed to get interpreter information for ‘C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python.exe’ [Error: Command failed: “C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python.exe” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py” Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:304:12) at ChildProcess.emit (events.js:223:5) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)] { killed: false, code: 9009, signal: null, cmd: ‘“C:\\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python.exe” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py”’ } Error 2020-12-23 09:50:28: Failed to get interpreter information for ‘C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python3.exe’ [Error: Command failed: “C:\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python3.exe” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py” Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:304:12) at ChildProcess.emit (events.js:223:5) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:430:11) at Socket.emit (events.js:223:5) at Pipe.<anonymous> (net.js:664:12)] { killed: false, code: 9009, signal: null, cmd: ‘“C:\\Users\eaperez\AppData\Local\Microsoft\WindowsApps\python3.exe” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\pyvsc-run-isolated.py” “c:\Users\eaperez\.vscode\extensions\ms-python.python-2020.12.424452561\pythonFiles\interpreterInfo.py”’ } ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe env list pyenv root pyenv root ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json pyenv root ~\AppData\Local\Continuum\anaconda3\Scripts\conda.exe info --json`

thanks in advance I hope someone can help me.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
KikeSenpaicommented, Jan 8, 2021

@DonJayamanne Thank you so much, the issue was resolved with the first 2 steps.

0reactions
DonJayamannecommented, Jan 8, 2021

Thanks @KikeSenpai for confirming the fix. Duplicate of #4248

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't run jupyter notebooks in vscode, IPyKernel not installed ...
1.- Open user settings (Preferences: Open User Settings & go into Jupyter->Logging Change the value to debug and Reload VS Code. Install this ......
Read more >
Working with Jupyter Notebooks in Visual Studio Code
To select an environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P).
Read more >
Installing the IPython kernel — IPython 8.7.0 documentation
The IPython kernel is the Python execution backend for Jupyter. The Jupyter Notebook and other frontends automatically ensure that the IPython kernel is ......
Read more >
Set up Jupyter Notebook in VS Code for Data Science
The top right of the VS Code UI says "Jupyter server: Not started". This means Jupyter library is currently not installed inside WSL....
Read more >
Setting up Jupyter Notebook locally - Data Analysis with Python
After Googling, I could see it was a reasonably common problem on Windows 64 systems. After trying a few things that didn't work,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found