You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shift+enter to start a REPL and send some Python code to the REPL
In the REPL, run exit()
Now there is still a Python terminal
4. Shift+enter again
5. 🐛 the existing Python terminal is reused but the REPL isn't restarted, so my selection is just dumped straight to the command prompt
Can we use shell integration here to restart the Python REPL or even switch the terminal type back to powershell after the user types exit()? cc @Tyriar
The text was updated successfully, but these errors were encountered:
This is still an issue, and has become even more of an issue lately.
After a restart of VSCode, the IDE tries to be smart and remember (reopen) the shells that were open the previous time a user closed VSCode.
The shell that was previously active as a Python REPL now becomes a regular bash/zsh/powershell shell after restarting VSCode.
When the user highlights code and presses Shift+Enter, the Python code is "smartly" sent to the shell that Python was previously active (it says Python in the VSCode terminal, but in actuality the regular shell is active).
Lots of import library_name are sent to the shell, causing the user's computer to freeze for several seconds as the shell deals with erroneous imports.
Files are created with the names of the python libraries that were attempted to be imported in the shell.
Testing #22533
exit()
Can we use shell integration here to restart the Python REPL or even switch the terminal type back to powershell after the user types
exit()
? cc @TyriarThe text was updated successfully, but these errors were encountered: