vscode-jupyter: Error when launching Interactive Window for the first time
Bug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur
-
Install the Python Extension
-
Click on the “Use the Interactive Window to develop Python Scripts”
-
On the right side bar click to install ipykernel
Actual behavior
When I click to install ipykernel I have the following error :
C:/Users/myuser/AppData/Local/Programs/Python/Python38/python.exe c:\Users\myuser\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\pyvsc-run-isolated.py c:\Users\myuser\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\shell_exec.py C:/Users/myuser/AppData/Local/Programs/Python/Python38/python.exe c:\Users\myuser\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\pyvsc-run-isolated.py pip install -U ipykernel --user C:/Users/myuser/AppData/Local/Temp/tmp-3788OaytmZIQkb4q.log
C:\Users\myuser\AppData\Local\Programs\Python\Python38\python.exe: can't open file 'c:Usersmyuser.vscodeextensionsms-python.python-2020.8.101144pythonFilespyvsc-run-isolated.py': [Errno 2] No such file or directory
Expected behavior
ipykernel must be installed without any errors. As you can see, there are an error with the forwarded slash in the path url…
C:/Users/myuser/AppData/Local/Programs/Python/Python38/python.exe c:\Users\myuser\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\pyvsc-run-isolated.py c:\Users\myuser\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\shell_exec.py C:/Users/myuser/AppData/Local/Programs/Python/Python38/python.exe c:\Users\myuser\.vscode\extensions\ms-python.python-2020.8.101144\pythonFiles\pyvsc-run-isolated.py pip install -U ipykernel --user C:/Users/myuser/AppData/Local/Temp/tmp-3788OaytmZIQkb4q.log
C:\Users\myuser\AppData\Local\Programs\Python\Python38\python.exe: can't open file 'c:Usersmyuser.vscodeextensionsms-python.python-2020.8.101144pythonFilespyvsc-run-isolated.py': [Errno 2] No such file or directory
Your Jupyter and/or Python environment
Please provide as much info as you readily know
- Jupyter server running: Local | Remote | N/A
- Extension version: 2020.8.101144-xxx
- VS Code version: 1.48.0
- Setting python.jediEnabled: true | false
- Setting python.languageServer: Jedi | Microsoft | None
- Python and/or Anaconda version: #.#.#
- OS: Windows | Mac | Linux (distro): Windows 10
- Virtual environment: conda | venv | virtualenv | N/A | …
Python Output
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 39 (19 by maintainers)
@IanMatthewHuff I confirm that by selecting PowerShell 7 as the default Shell the interactive Window is now working. I have been able to install ipykernel successfully.
Sorry for the inconvinience about this issue and my git-bash. Is it planned to support Git-bash ?
Many thanks for your help.
Thanks, I’ve done that after figuring out I could get it working by calling
code
through the powershell prompt. microsoft/vscode-python#13590