Skip to content

Instantly share code, notes, and snippets.

@anphetamina
Created January 1, 2020 00:37
Show Gist options
  • Save anphetamina/23783f70816a0171d77530fd0f2b6b00 to your computer and use it in GitHub Desktop.
Save anphetamina/23783f70816a0171d77530fd0f2b6b00 to your computer and use it in GitHub Desktop.
Prevent Google Colab from disconnecting
function ClickConnect(){
console.log("Working");
document.querySelector("colab-toolbar-button#connect").click()
}
setInterval(ClickConnect,60000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment