Helps in automatically reconnecting the colab session if disconnected, also prevents the idle timeout by clicking the colab-connect-button
-
clone this repository: https://github.com/satyajitghana/colab-keepalive
-
go to
chrome://extensions/
-
click on
Load unpacked
and select this folder -
that's it ! go to https://colab.research.google.com/ , it should automatically work, open
Developer Tools
to see logs
function ClickConnect() {
console.log('%c [colab-alive]: connect click - start', 'color:DodgerBlue');
document.querySelector("#top-toolbar > colab-connect-button").shadowRoot.querySelector("#connect").click();
console.log('%c [colab-alive]: connect click - end', 'color: DodgerBlue');
}
made with 💖 by shadowleaf