What does matplotlib.use() do, and when should you set the Matplotlib backend explicitly?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks what matplotlib.use() does and when you should pick the Matplotlib backend explicitly. It tests knowledge of interactive and non-interactive backends, call order relative to pyplot, and how to debug plotting failures on servers, in CI and in notebooks.