Answers for "colab idle timeout"

0

colab idle timeout

// credit to the Stack Overflow user in the source link
// press Ctrl + Shift + i to open the inspector view, then go to the console
// and copy - paste the following lines

function ClickConnect(){
console.log("Working"); 
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click();
}
setInterval(ClickConnect,60000)
Posted by: Guest on August-24-2021

Browse Popular Code Answers by Language