CmdID

CmdID / Commands

colab-exec

Execute code in an active Google Colab session. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Execute code provided via stdin

echo "print('Hello from Colab')" | colab execIdentify

Execute a local Python script in the active session

colab exec --file path/to/script.pyIdentify

Execute a local Jupyter notebook in a specific named session

colab exec --session session_name --file path/to/notebook.ipynbIdentify

Execute a script and save generated plots to an image file

colab exec --file path/to/script.py --output-image path/to/plot.pngIdentify

Execute code with a custom timeout in seconds

colab exec --file path/to/script.py --timeout 60.0Identify