3 Comments

function ClickConnect() {

console.log('Clicked')

document

.querySelector('#top-toolbar > colab-connect-button')

.shadowRoot.querySelector('#connect')

.click()

}

setInterval(ClickConnect, 60000)//milliseconds

(Here is the Code Nishad, paste it into your Google colab) You can modify it to suit your preference.

Expand full comment

Nice read. There's a script to ensure that Google colab does not shut after some time. Will share it so that anyone who wants to go an extra mile will incorporate in their resume project.

Expand full comment

Thank you Bossman! Please do!

Expand full comment