简体   繁体   中英

Plotly offline html graph, embedding it into Dash

I have created a 3D graph in Plotly and saved it as an html as follows:

plotly.offline.plot(fig, filename='3D.html') 

I have also created a dashboard in Dash, however my question is how do I add '3D.html' to my dashboard? (3D.html is saved locally)

解决方案是使用

html.div([ html.Iframe(src.get_asset_url("plotly3D.html)])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM