google colab runtime disconnected time in colab pro code example

Example 1: colab notebook keeps getting disconnected

function ClickConnect(){
    console.log("Clicked on connect button"); 
    document.querySelector("colab-connect-button").click()
}
setInterval(ClickConnect,60000)

Example 2: colab notebook keeps getting disconnected

function ClickConnect(){
    console.log("Clicked on connect button"); 
    document.querySelector("colab-connect-button").click()
}
setInterval(ClickConnect,60000)

Tags:

Go Example