This question is specific to Google Colaboratory, while some solutions may work in a normal Python interperter, Google Colaboratory does not seem to allow me to programatically clear the Python interpreter output.
Solutions that I have already tried that do not work:
JavaScript
x
6
1
import os
2
os.system('cls')
3
os.system('clear')
4
!cls
5
!clear
6
Advertisement
Answer
from IPython.display import clear_output
clear_output()
This is useful to me.