Here is a Python REPL
hello = "Hello world!" print(hello)
from js import document as _DOC def clear_term(): ter = _DOC.getElementById("my-terminal").firstChild ter.innerHTML = ''
Clear output window