Open ggreif opened 7 years ago
I am not sure I understand. Could you describe in more detail what you mean by "URL cell"? The closest comparison I know is Mathematica, and I have never seen this concept there before.
You create an URL-cell, enter http://wikipedia.org/some.svg and it appears in the displayed part as an image. For e.g. illustration purposes.
I tried this and it (almost) worked:
import Data.Text
html $ pack "<webview src='https://rawgit.com/ggreif/omega/wiki/Letrec.svg'/>"
Working on better integration now.
ggreif@7070b9c7d98d28392f3d384563d76fef64e7433d contains a glimpse of what I am implementing. Still missing:
loadURL
when worksheet is loadedQuill
instead of CodeMirror
svg
auto-resizing
These can probably modeled just like text cells. I have no idea whether the JS part supports URL-loading, though.
In the meantime I found a stop-gap solution for showing locally stored html/svg files:
Then in an evaluation cell you can put
readSVG "my.svg"
. The bad thing is that I have to re-evaluate those cells after opening the worksheet.