API reference
PlotlyWidget.
to_plotly_json
Convert figure to a JSON representation as a Python dict
dict