I was looking for how to echo commands to the console as a Python script is executing. Google pointed me to the trace module, but what I found online shows that it must be specified when invoking python. However, I'm using Spyder, and the console already shows an IPython prompt, so I never explicitly invoke python.
Is there a way to use the trace module when invoking a Python script from the Spyder console? I run the script using runfile.