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