I want to periodically clear the output of a cell in Google Colab, which runs a local python file with !python file.py
I've tried the answers to this question on stackoverflow:
from google.colab import output
output.clear()
and
from IPython.display import clear_output
clear_output()
Both of those work if i run them in a cell directly and not via a local file.