Microsoft/VSCode - Cannot create a Python Interactive Window - vscode-jupyter

Hello,

Since today I am not able to create a Python Interactive Window. Whenever I try to do so, I get the message "Connectiong to IPython kernel: Connecting to kernel." followed by "Timed out waiting to get a heartbeat from kernel process.". I have attached a log file with more information.

Logging.txt

I found the error: "Error 2020-09-24 17:15:28: Failed to start the Daemon, StdErr: C:\Users\john van helden\Anaconda3\python.exe: can't open file '"c:/Users/john van helden/.vscode/extensions/ms-python.python-2020.9.111407/pythonFiles/pyvsc-run-isolated.py"': [Errno 22] Invalid argument"

The file is present at the specified location and the permissions of the file are good. If I click on the file, it is succesfully opened in VSCode.

System info: - Windows 10 - VS Code version: 1.49.1 - Anaconda Navigator 1.9.12 - Python 3.7.9 64-bit ('base':conda)

Steps taken: - Remove Python extension in VSCode; - Close all VSCode instances; - Delete extension folder in ?/.vscode/extensions called ms-python.python-{version}; - Open VSCode again and install Python extension; - Delete VSC entirely and reinstall; - Update all packages in Anaconda; - Install Python 3.8.5 and try again using this interpreter, same issue;

Looking forward to some help.

Thanks in advance!

Asked Sep 29 '21 20:09
avatar RobinYookr
RobinYookr

6 Answer:

Error: image

File in location: image

File permissions: image image

Checkboxes for 'Entire management, Editing, Reading and executing, reading, writing'.

1
Answered Sep 24 '20 at 15:38
avatar  of RobinYookr
RobinYookr

@anupampydey Please could you provide the following info: * VS Code Version * Extension version * Logs

1
Answered Sep 24 '20 at 20:05
avatar  of DonJayamanne
DonJayamanne

for engineering team: Consider not running python-run-isolated when starting the daemon. Also having spaces in the user name may be causing an issue.

Thanks @RobinYookr, we'll take a look.

1
Answered Sep 24 '20 at 20:41
avatar  of greazer
greazer
  • VS Code version: 1.49.1
  • Python extension v2020.9.111407
  • Logs is attached already, see the logging.txt file.

Thank you in advance!

1
Answered Sep 24 '20 at 21:04
avatar  of RobinYookr
RobinYookr

Regarding the spaces in the username of windwows: the Interactive Python windows has been working perfectly for the last 9 months. It stopped working since today, while no special activities (e.g. updates or whatsoever) have taken place.

1
Answered Sep 24 '20 at 21:05
avatar  of RobinYookr
RobinYookr

Please could you check and confirm the file exists. If not, please could you uninstall the python extension & confirm the following folder has been deleted

@DonJayamanne Confirmed file existed, uninstalled Python extension and confirmed that the folder and file were removed/deleted, reinstalled the Python Extension. Same exact issue is happening

1
Answered Sep 24 '20 at 22:09
avatar  of vietbub
vietbub