📌  相关文章
📜  how-to-prevent-google-colab-from-disconnecting - Go 编程语言代码示例

📅  最后修改于: 2022-03-11 14:45:00.852000             🧑  作者: Mango

代码示例1
#Set a javascript interval to click on the connect button every 60 seconds. 
#Open developer-settings (in your web-browser) with Ctrl+Shift+I then click 
#on console tab and type this on the console prompt. 
#(for mac press Option+Command+I)

function ConnectButton(){
    console.log("Connect pushed"); 
    document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click() 
}
setInterval(ConnectButton,60000);