yfeng997 / MadMario

Interactive tutorial to build a learning Mario, for first-time RL learners
192 stars 68 forks source link

Keep Colab session active #2

Closed yfeng997 closed 4 years ago

yfeng997 commented 4 years ago

Training on Colab takes around 8 hours. We need to keep the session active. Use this snippet to keep the session alive.

function ClickConnect(){
    console.log("Clicked on connect button"); 
    document.querySelector("colab-connect-button").click()
}
setInterval(ClickConnect,60000)

colab-connect-button is the button on the upper right that shows RAM and Disk usage.