Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

How to serialize Json file of Html.Div?

$
0
0

@tonywang531 wrote:

Following the tutorial of https://dash.plotly.com/sharing-data-between-callbacks,
I am trying to store a result into a hidden Div. For example:

x = html.Div([dcc.Graph(id = 1), ], style={"border":"1px black solid"})
new_x = (json.dumps(x))

This will throw error of object is not serializable. Is there an easy way to convert everything into String and back? Or do I have to store the data as list only and create the graphs later?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles