clear console google collab code example Example: clear console in google collab from IPython.display import clear_output clear_output()