(1)进入Colab的notebook界面,按快捷键F12,打开开发者模式或者右键检查进入,选择console
(2)复制并运行代码
function ClickConnect(){
console.log("Working");
document
.querySelector("#top-toolbar > colab-connect-button")
.shadowRoot
.querySelector("#connect")
.click()
}
setInterval(ClickConnect,60000)
参考链接:https://blog.csdn.net/yhblog/article/details/121535268
标签:Google,console,colab,ClickConnect,connect,querySelector,防断 From: https://www.cnblogs.com/MasJINX17/p/17152963.html