Ke Tian Ke Tian - 8 months ago 67
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 Source

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