Does Google Colab stay connected when I close my browser?

Google Colaboratory

Google Colaboratory Problem Overview

This may be a dumb question, but does a job stop running on a Colab instance when I close my browser? If not, is there a way to keep it running (i.e until it's complete)

In that same vein of thought, if I were to give someone edit access to my Colab notebook, would it be running on my instance of Colab with all my installed libraries or on theirs?

Google Colaboratory Solutions

Solution 1 - Google Colaboratory

  1. The current cell will continue executing once you close your browser, but the outputs will not end up in the notebook in Drive. (If you were to reconnect before your VM were considered idle and deleted, any values you'd computed would still be available in your kernel.)

  2. Distinct users are always assigned to distinct backends, so they'd have to install the libraries themselves. (This is one reason we encourage keeping library setup/config in the notebook.)


All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMeme OverlordView Question on Stackoverflow
Solution 1 - Google ColaboratoryCraig CitroView Answer on Stackoverflow