Trim whitespace from base64 encoded image data before decoding it (#19977)
Kyle Kelley
created
Closes #17956
Closes #16330
This fix is for both REPL (released) and notebook (unreleased)
<img width="1210" alt="image"
src="https://github.com/user-attachments/assets/bd046f0f-3ad1-4c25-b3cb-114e008c2a69">
Release Notes:
- Fixed image support in REPL for certain versions of matplotlib that
included preceding and/or trailing whitespace in the base64 image data