Why does plt.show() behave differently in a script versus a Jupyter notebook?
Role: Data Scientist
Category: Data Manipulation (SQL/Python)
Difficulty: easy
Interview Round: Other
Overview: Asks why Matplotlib's plt.show() blocks and opens a window in a Python script but behaves differently inside a Jupyter notebook. Tests understanding of Matplotlib backends, the inline renderer, headless environments, and common figure-saving pitfalls.