If I am done with a jupyter notebook created on google colab and which was connected to one of its env with GPU, how do I close and halt it? Locally, I used to do this by clicking on File > Close and Halt. I just want to be considerate about using this great and free computing resource.
Run the following cell and select Runtime -> Interrupt execution (hotkey: Cmd/Ctrl-M I) to stop execution.
If you close the notebook window and open it while the instance is still running, the cell outputs and variables will still persist. However if the notebook instance has been recycled, your cell outputs and variables will no longer be available.
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.
After setting up the text part in Colab like what others have said, you can press control and quote key at the same time and collapse whichever cell/section you want.
Just close the tab, we'll take care of the rest.
I recently found that
It will be faster than waiting for the system to reclaim it. This is handy if you are overusing your quota and want your "clock" to reset as soon as possible.
Go to:
Runtime >> Manage sessions
There you can view the active sessions
You can Terminate sessions or Terminate other sessions than the current Colab notebook
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With