colab keeps editing first cell code example
Example: how to run colab in background
# ctrl + shift + i
# then in the console tab write this:
(setInterval(function(){ console.log("Connect pushed"); document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click(); },60000))