sour4bh / stop-cursing-colab

A simple AHK script to keep Google Colab runtimes alive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stop-cursing-colab

A simple AHK script to keep Google Colab alive:

This script uses AutoHotKey, an automation scripting language and tool, to emulate human interface device interactions on Google Colab notebook to avoid runtime inactivity timeouts.

Note: this works only on Windows OS!

Read the medium article for more information.

Usage

Executable Binary (No dependencies) :
  • Download the .exe from the releases section.
  • Just double-click the executable colab_keep_alive.exe
  • Enter the file name of the colab <filename.ipynb>
  • Set the interval for HID interactions (in mins)
  • Done.
CIY using Authotkey :
  • Install AutoHotKey
  • Double-click colab_keep_alive.ahk to run. [ To compile, right click > compile ]
  • Enter the file name of the colab <filename.ipynb>
  • Set the interval for HID interactions (in mins)
  • Done.

Troubleshoot

  • The title of the window should be <filename.ipynb> - Colaboratory - Google Chrome
  • If there are multiple tabs in the Chrome Window, make sure colab notebook is the active one.
  • Make sure power sleep/hibernate timeout is greater than script's interval 🙃

About

A simple AHK script to keep Google Colab runtimes alive.


Languages

Language:AutoHotkey 100.0%