Converting matplotlib png to base64 for viewing in html template
The beginning of the data in the template gives a clue to what’s happening. ' is the HTML entity for a single quote ‘. Combined with the preceding b, b’, it looks like the representation of a byte string, rather than the contents of the string. Decode the byte string to a string before trying … Read more