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

How to create components from JSON

$
0
0

@aquinomas wrote:

Hello,

I would like to know if its possible to generate an html component from a JSON dict object, generated with the to_plotly_json() method. I found a method called generate_class in the dash development module but it does not seem to work.

I would like something like this pseudocode:

from dash_html_components import Div

results = Div(children="children here computed after a long procedure to be returned in a callback") 
# Magic function generate_component that creates a component with the serialized information
retrieved_results = generate_component(results)

And thus results and retrieved_results are the same component. Is this even possible ?

Thanks for your help!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles