HeinrichApfelmus / hyper-haskell

The strongly hyped Haskell interpreter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does HyperHaskell work with Plotly?

steinitznavican opened this issue · comments

Suppose I have generated the following plotly

<!DOCTYPE HTML><html><head><meta charset="utf-8"><script src="https://cdn.plot.ly/plotly-latest.min.js"></script></head><body><div id="myContour"></div><script>Plotly.newPlot('myContour', [{"z":[[10,10.625,12.5,15.625,20],[5.625,6.25,8.125,11.25,15.625],[2.5,3.125,5,8.125,12.5],[0.625,1.25,3.125,6.25,10.625],[0,0.625,2.5,5.625,10]],"x":[-9,-6,-5,-3,-1],"type":"contour","orientation":"h","y":[0,1,4,5,7]}],{}, {displayModeBar: false});</script></body></html>

I can render this in my browser. Can it be rendered in a cell in HyperHaskell? I have failed to do this in IHaskell although I believe it to be possible.

At the moment, it should be possible to render any HTML output with the display class. But I don't know whether including external libraries via a <script> tag works.