Environment Helpers

Overview

Utilities for runtime environment detection.

API Reference

Environment detection helpers for notebook and Colab runtimes.

drcutils.runtime.env.is_google_colab()[source]

Determine whether or not the environment is in Google Colab.

Returns:

True when running in Google Colab.

drcutils.runtime.env.is_notebook()[source]

Determine whether or not the environment is in a notebook.

Returns:

True when running in a notebook runtime.