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
Running a python file (with python extension installed) runs the file in terminal, then exits. It would be better in some cases if the file was opened in REPL, just like in IDLE.
A workaround is to select all, then Shift+Enter, but that's a problem if there are some outputs before the file ends.
Currently, on linux, running the file issues the following command in the terminal "path/to/python /path/to/file/file.py". Please allow to use an alternative command "python3 -i /path/to/file/file.py" or "path/to/python -i path/to/file/file/py" so that the file is opened in interactive mode.
Thanks!
The text was updated successfully, but these errors were encountered:
UPDATE: After some more digging, I have found the python.terminal.launchargs option. It works, but does not close the previous REPL if again pressed with the REPL open, and throws an error.
Running a python file (with python extension installed) runs the file in terminal, then exits. It would be better in some cases if the file was opened in REPL, just like in IDLE.
A workaround is to select all, then Shift+Enter, but that's a problem if there are some outputs before the file ends.
Currently, on linux, running the file issues the following command in the terminal "path/to/python /path/to/file/file.py". Please allow to use an alternative command "python3 -i /path/to/file/file.py" or "path/to/python -i path/to/file/file/py" so that the file is opened in interactive mode.
Thanks!
The text was updated successfully, but these errors were encountered: