To clear outputs from a Google Colab notebook, the two methods below can be used:
Method 1 - Manual Clear
Clear Individual Cell
Select the cell
Select the three button icon
Select "Clear output"
Clear All Cells
Select the "Edit" tab
Select the "Clear all outputs" option at the bottom
Method 2 - Programmatic Clear with Python
Import the clear output function with "from IPython.display import clear_output"
Add "clear_output()" at the end of the cell
The notebook can be found in the "Google Colab Tutorials" folder within the below repo.
GitHub Repo - https://github.com/ad17171717/YouTube...
CONNECT:
LinkedIn: / adrian-dolinay-frm-96a289106
GitHub: https://github.com/ad17171717
X: / dolinayg
Odysee: https://odysee.com/@adriandolinay:0
Medium: / adriandolinay
|-Video Chapters-|
0:00 - Intro
0:12 - Method 1: Manually Clearing Cells
0:51 - Method 2: Clearing Cells with Python
1:17 - Conclusion