Use the get_backend() function to obtain a string denoting which backend is in use:
>>> import matplotlib
>>> matplotlib.get_backend()
'TkAgg'
Use the get_backend() function to obtain a string denoting which backend is in use:
>>> import matplotlib
>>> matplotlib.get_backend()
'TkAgg'