I have just migrated from Jupyter to Spyder. On the left of the screen there is a console that shows the output. When I rerun the code it keeps adding new lines. I want to start with a new screen. How?
PS1: When I go to the IPyhton console and write cls or clear, it works. But I want to do that from Python code. The latter doesn't recognize that command, but IPython console does!
PS2: I've tried
import os
os.system('cls') # on windows
It didn't work. It shows a CMD window for a moment and vanishes. But the console window in Spyder still shows the old errors, besides the new ones.