Skip to content

Instantly share code, notes, and snippets.

@korakot
Last active February 16, 2024 07:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save korakot/7c6d9b0572c6adf0acd66b022a2306d6 to your computer and use it in GitHub Desktop.
Save korakot/7c6d9b0572c6adf0acd66b022a2306d6 to your computer and use it in GitHub Desktop.
Clear cell output in Colab
from google.colab import output
output.clear()
# IPython also has clear_output() but this is shorter.
from IPython.display import clear_output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment