Syntax error How to check that pylab backend of Matplotlib runs inline?

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: 2021-06-18T10:43:04+05:30

364 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements