["python","google-colaboratory"]
Can I run a Google Colab (free edition) script and then shut down my computer?

Can I run a google colab (free edition) script and then shut down my computer? I am training several deeplearning models with crossvalidation, and therefore I would like to know if I can close the window or the computer with the training running at the same time in the cloud.
2024 Update: At the time of writing the original answer, Google Colaboratory was an entirely free service and there was no official support for background execution of a notebook as the question describes. While we previously arrived at some estimates for notebook lifetimes through anecdotal experience, these estimates are no longer reliable and you will find that Colaboratory prunes your notebook runtimes much more aggressively now. The answer to the question now would be simply no, you may not reliably have a Google Colab notebook running in the background without shelling out for a Colab Pro+ subscription, or using a workaround that infringes on Colab's usage policies. If you're in a position where you do not have access to GPUs, nor the funds to pay for access to them but need them for long-running tasks, you may take a look at this non-exhaustive list of alternatives. However, they all come with usage restrictions, or involve a learning curve to use: Saturn Cloud Free Plan The Saturn Cloud platform provides 150 free compute hours per month Amazon SageMaker As part of the AWS Free Tier, you get 250 hours of usage of an ML instance for the first two months Colab Pro+ If you bite the bullet and sign up for a Colab Pro+ subscription, you may run a notebook in the background for up to 24 hours as long as you have available compute units. Previous answer circa 2019: With the browser closed, a Colabs instance will run for at most 12 hours 90 minutes before your runtime is considered idle and is recycled. At the same time, it would be good practice to save your model weights periodically to avoid losing work.