Hi, I am trying to build an application with react and flask. One of the functionality is to download this holoview graph as a png, the issue is that I am building a customized save button instead of using the save button embedded with graph.
To download the image, I need something like a base-64/blob version of this image, I am wondering if there are any methods that can help me convert a holoview chart to a base64 string in python.
On the Python side you can hv.save the file. For example using the matplotlib backend and to .svg. Or Bokeh and .png. Then you can transfer the result over your REST API to the frontend.
Hi Marc, thank you for your wonderful response, yes, I do look for a solution that doesn’t need to download and read the image again, like what you mention, the BytesIO solution, Is it possible that you can just show me how I might convert a hvplot a BytesIO or StringIO with concrete code example