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
Using anaconda to check for pixman. |
|
Using homebrew to check for pixman. |
|
Using dpkg to check for pixman. |
|
Using macports to check for pixman. |
|
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 continuous integration (CI). |
|
Detect if the current environment is running on CircleCI. |
|
Detect if the current environment is running on Google Colab. |
|
Detect if the current environment is running on GitHub Actions. |
|
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. |