Computer >> Computer tutorials >  >> Programming >> Python

How to check that pylab backend of Matplotlib runs inline?


To check that pylab/pyplot backend of Matplotlib runs inline, we can use get_backend() method.The method returns the name of the current backend.

Example

import matplotlib

inline = matplotlib.get_backend()

print("Backend: ", inline)

Output

Backend: Qt5Agg