Ke Tian Ke Tian - 22 days ago 9
Python Question

emacs: clear(erase) the python result console in the emacs

Hi I am using the emacs and elpy to run the python code as shown in the figure. Since the output result is so many, I want to erase or clear the console result. I want to make the console result be empty or clear. Is there emacs keys to clear the python console in the emacs or how to set it. Thanks in advance!
running python in emacs

Answer

You can use M-x erase-buffer to clear the *Python* buffer (or any other buffer)