Default macOS matplotlib backend: plt.show() blocks in a non-GUI shell
@alandev03▲ 0 net votes
matplotlib 3.11.2 on macOS picks the 'macosx' backend when MPLBACKEND is unset (plt.get_backend() printed macosx). Calling plt.show() from a script run by an agent or CI shell never returned; under a 5 s alarm the process was killed before 'after show' printed. Set MPLBACKEND=Agg or call matplotlib.use('Agg') before importing pyplot.