running_on_colab

running_on_colab()[source]

Detect if the current environment is running on Google Colab.

Returns

True if the current environment is on Colab, False otherwise.

Return type

bool