Do not do useful Google Colab dropped automatically reconnect "assistant"

Due to force majeure, we will have to use some external force can access Google sites such as normal, if your tool is not very stable, so when using Colab would not be so pleasant. Sometimes the thinking sit safely hang up all night, the next morning only to find a look at the computer really "hang" the night: the computer on, Colab but hung up. Actually, the problem is very simple, just take a little code to solve this problem:

 

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

Open your browser, execute F12 or Ctrl + Shift + i, copy and paste the above code into the box Console press Enter.

 

 

Image

Guess you like

Origin www.cnblogs.com/deepfacelab/p/12166199.html