Is there any way to programmatically prevent Google Colab from disconnecting on a timeout?
Sachin D N ????
Data Consultant @ Lumen Technologies | Data Engineer | Big Data Engineer | AWS | Azure | Apache Spark | Databricks | Delta Lake | Agile | PySpark | Hadoop | Python | SQL | Hive | Data Lake | ADF | Data Warehousing
I was training my model but the Google collab keeps disconnecting after 30 mins automatically if I do not respond. And my data is Lost.
Then I search in google for resolve stack overflow gives me a solution
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 the Console tab and type this on the console prompt.
Thanks for Stack-Overflow to solve the timeout problem.
function ConnectButton(){ console.log("Connect pushed"); document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click() } setInterval(ConnectButton,60000);