Is there a way to change the what the default end-of-line character the standard python interpreter (REPL) in Interactive Mode will accept to run a line of code? On a Windows os, the interpreter only accepts \r\n
before it will run a line of code. I want to change that to \n
in on a Windows machine?
Why: I use atom editor with platformio-atom-ide-terminal package and git-bash (EOL = '\n') as the Shell Override on a Windows machine (EOL = '\r\n') to run python, pyspark, and scala on a remote Linux machine (EOL = '\n') and also python on the local Windows machine (EOL = '\r\n').
I can easily change platformio-atom-ide-terminal package to run code in the attached terminal with ctrl+enter
which simply passes the line of code (text) into the terminal appending only the '\n' to the end of the line of text. The code I can successfully run this way includes local Windows shell commands, remote Linux shell commands, and python, pyspark, and spark code on the remote Linux sys.
The only thing I have to do to unify everything is get the local Windows python interpreter to accept '\n' rather than '\r\n' at the end of the line to run the text passed to it.