I am working on a project that heavily depends on Jupyter notebooks. Specifically, I have hit a bump when parsing notebooks to extract the cell outputs.
I found out that
Matplotlib plots or any image generated using code gets saved into the underlying JSON as “image/png”. For example:
(the full image string can be found from this gist)
From that string I want to recreate the image outside jupyter notebooks. Any ideas?
I have tried converting it to bytes string in Python with
bytes("image_string", "utf-8") but can’t make it work. Please help!