In short, I have a flask application where I create some plots using Bokeh. I return them as json by doing the following:
return jsonify(json_item(figure, "my_figure"))
Now, I am trying to achieve the same but using plotly to create my figures. Any guidance on how this can be achieved?