Closed NickSeagull closed 7 years ago
I've tracked the bug, and what happens, is that when we add <script>
tags they don't get executed, so the Plotly JS file is not include, nor the script generated by plotlyhs is executed.
@mdibaiee you have way more experience than I do in JS, do you have any idea?
@NickSeagull ah yeah, sadly setting innerHTML
of a div
element, which would then include script/css tags doesn't work as expected, script tags should either be appended using JavaScript (document.head.appendChild(document.createElement('script'))
), or we should probably use an iframe, I'll make a PR :+1:
Fixed! Closing
As @vertexcite noted, when writing the following code in haskell.do, one should get a correct plotly render when writing:
But nothing happens