Colab-Tools icon indicating copy to clipboard operation
Colab-Tools copied to clipboard

Prevent runtime disconnect: - How-To?

Open whiteforcekali16 opened this issue 3 years ago • 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)

whiteforcekali16 avatar Jan 15 '22 19:01 whiteforcekali16