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

Updated on: 18-Jun-2021

291 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements