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 unpackedand select this folder -
that's it ! go to https://colab.research.google.com/ , it should automatically work, open
Developer Toolsto 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
