env_detectionΒΆ
Detection methods for the current environment.
This module contains methods for detecting aspects of the current environment. Some things which this module can detect are:
Whether the current environment is interactive.
Whether the current environment is a conda environment.
Whether the current environment is running on travis, kaggle, or colab.
Note that these detections may not be correct 100% of the time but are as accurate as can be reasonably be expected depending on what is being detected.
Functions
Detect if the current environment is running on Google colab with a GPU. |
|
Detect if the runtime has GPU. |
|
Detect if the current environment has a network connection. |
|
Detect if the current environment is a conda environment. |
|
Detect if the current environment is interactive. |
|
Detect if the current environment is a Jupyter notebook. |
|
The version(s) of pixman that are installed. |
|
Detect if pixman version 0.38 is being used. |
|
Detect if the current environment is running on Google colab. |
|
Detect if the current environment is running on kaggle. |
|
Detect if the current environment is running on travis. |
|
Convert a version string to a tuple of ints. |