Home

Published

- 1 min read

colab session timeout

img of colab session timeout

The solution for this is noted below

colab session timeout

Solution

   // to define and start interval
function ClickConnect() {
	console.log('Working')
	document
		.querySelector('#top-toolbar > colab-connect-button')
		.shadowRoot.querySelector('#connect')
		.click()
}
// set timer for every 5 minutes
var clicker = setInterval(ClickConnect, 60000 * 5)
clicker

// to clear interval
clearInterval(clicker)

Try other methods by searching on the site. That is if this doesn’t work