Comment voulez-vous déterminer qui backend est utilisé par matplotlib?

Soit de manière interactive, comme dans un Ipython session, ou à partir d'un script, comment pouvez-vous déterminer quel moteur est utilisé par matplotlib?