AlexLynd/Colab-Tools

Prevent runtime disconnect: - How-To?

Opened this issue · 0 comments

Hi Alex, can you advise how you run this code in the Colab. There are 10 blocks where code can be run, does this not have to be part of code function within these 10 blocks? I tried its own block code and got errors. Can you expand on the Readme as to where exactly you put this code so that the session is not disconnected?

function clickConnect() {
document.querySelector("colab-connect-button").click()
console.log("Reconnected notebook.");
}
setInterval(clickConnect,60000)