Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
Automatic detection of display availability with Matplotlib
To detect display availability with matplotlib, we can take the following steps −
Stps
Import os module.
Use os.environ["DISPLAY"] to get the available display.
Example
import os
env = os.environ["DISPLAY"]
print("Automatic detected display availability: ", env)
Output
Automatic detected display availability: 0
Advertisements
