Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Colab: No option to restart and clear all outputs?

I'm experienced with Jupyter Notebook and am coming over to Google Colaboratory. I noticed that Colab does not have an option to restart the runtime and clear all the outputs; is that correct?

In Jupyter Notebook, the option is under Kernel --> Restart & Clear Output.

enter image description here

However, in Google Colab, there is no such option under the Runtime menu:

enter image description here

When I click on Restart Runtime..., it only shows the following:

enter image description here

Any help would be appreciated.

like image 883
stackoverflowuser2010 Avatar asked Feb 18 '20 19:02

stackoverflowuser2010


2 Answers

To clear outputs, go to 'EDIT' and 'clear all outputs'.

If you want to reset all packages, data files etc. installed, you have got to the runtime as you mentioned. Hopefully, it helps. :)

like image 173
Prateek Sohlot Avatar answered Oct 27 '22 20:10

Prateek Sohlot


2 step process in google colab

  1. Edit>>Clear all outputs
  2. Runtime>>Restart Runtime
like image 2
Harish Masand Avatar answered Oct 27 '22 21:10

Harish Masand