In VS Code every time I send more python code than is on my editor screen to the interpreter with shift + enter it freezes up with a "PTY disconnection"
I would like to highlight my entire .py file and "shift + enter" it to the interpreter.
I restarted my computer.
I have installed several different versions of VS Code but I cannot get it to work.
I installed/re-installed the extensions
How can I do this?
2
Answers
you can check this , this is same issue as yours
https://github.com/microsoft/vscode-python/issues/24251
issue is resolve by doing:
Just as it is shown in the video of @CardonaEA , the error started me after I disabled the REPL to be executed after the keyboard shortcut SHIFT + ENTER.
However, even specifying in "Preferences: Open Workplace Settings (JSON)" the setting "python.REPL.sendToNativeREPL" to false, the KeyboardInterrupt still shows up. I don’t know if it is related to the issue, but even if I still turn it to false in "Preferences: Open Workplace Settings (JSON)", in the page "Preferences: Open Default Settings (JSON)" (which I cannot edit), the setting "python.REPL.sendToNativeREPL" is still set true.
Rolling back the extension to v14.1 will mitigate the issue before there is any fix regarding this.