How would you approach embedding a Matplotlib figure inside a web application?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: medium
Interview Round: Other
Overview: Asks how to serve Matplotlib charts from a Python web application to a browser. Tests knowledge of headless rendering backends, in-memory image output, endpoint versus inline delivery, thread safety and figure cleanup under concurrent requests, and when to move to an interactive JavaScript charting library.