You are reading an old version of the documentation (v3.0.2). For the latest version see https://matplotlib.org/stable/
Version 3.0.2
matplotlib
Fork me on GitHub

Matplotlib.use now has an ImportError for interactive backendΒΆ

Switching backends via matplotlib.use is now allowed by default, regardless of whether matplotlib.pyplot has been imported. If the user tries to switch from an already-started interactive backend to a different interactive backend, an ImportError will be raised.