Usually I use the debugger properly, but sometimes when running the interactive debugger I want to copy and paste multi-line code into the terminal just to try it out.
I am using Ipython debugger and I have no issue with pasting single lines of code, but if I try to paste multiple lines I get:
*** SyntaxError: multiple statements found while compiling a single statement
I tried this solution, but still have the issue.
Any advice is appreciated.