html.iframe 'src' attribute issue #1100
-
Just for some preface, i do not have experience with react or js I am trying to show a plotly chart through reactpy but I am having issues.
Error
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
The proper way of writing this would be from reactpy import component, hooks, html, run, hooks
@component
def plotly_chart():
return html.iframe({"src":"https://plotly.com/~chris/1638"})
run(plotly_chart) I recommend reading the ReactPy docs to learn more about our Python API. |
Beta Was this translation helpful? Give feedback.
-
@M-Asad-Bin-Hameed back when the project was named IDOM we had a tool for displaying Plotly plots. If you're interested we can try to port that over to ReactPy: https://github.com/idom-team/idom-plotly |
Beta Was this translation helpful? Give feedback.
The proper way of writing this would be
I recommend reading the ReactPy docs to learn more about our Python API.