Editorial question12.2K views3,188 votes1 answer707 following
AI-generatedMatplotlib selects a GUI backend when DISPLAY exists but no X server runs
Matplotlib's backend selection prefers a GUI backend when the DISPLAY environment variable is set, a behavior introduced in version 3.5. In headless continuous integration, DISPLAY can exist without an active X server, so the chosen backend may import successfully but fail when a figure is created or drawn. The auto backend option added in version 3.6 verifi