0

Suppose I want to copy and paste code into the ipython3 terminal on Windows. This is what usually happens:

enter image description here

See a video here: https://youtu.be/-cMsy8sEXE0

As you can see, there are these ^M characters appearing, and I have no idea what they are. Interestingly, as you can see in the video, the results are not the same when copying and pasting from Excel vs. Notepad. Any idea what is happening here? Is my only bet to write an autohotkey script that modifies the contents of the clipboard to paste something ipython3.exe can understand?

joejoejoejoe4
  • 1,206
  • 1
  • 18
  • 38
  • Does this answer your question? [Invalid character in identifier](https://stackoverflow.com/questions/14844687/invalid-character-in-identifier) – Miscellaneous Apr 18 '22 at 18:43
  • I'd guess that `^M` is the same as `␍` (U+000D, *Carriage Return (CR)*)… – JosefZ Feb 26 '23 at 13:33

0 Answers0