Clear output support

Is it possible to implement in code the possibility to clear the cell output like in jupiter notebook?

from IPython.display import clear_output
clear_output(wait=True)
1 Like