Why might a Matplotlib plot not display when running a script, and what common function call is often missed?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks why a Matplotlib chart that appears in a notebook fails to show up when the same code runs as a Python script, and which call is usually missing. Tests understanding of Matplotlib backends, the GUI event loop, headless environments, and how to save plots when no display exists.