Like most Python developers, I typically keep a console window open with the Python interpreter running to test commands, dir() stuff, help() stuff
dir()
help() stuff
I am using Spyder (Python 2.7) and to clean the interpreter console I use either
%clear
that forces the command line to go to the top and I will not see the previous old commands.
or I click "option" on the Console environment and select "Restart kernel" that removes everything.