Hi, is there a way to embed an external svg into the current svg?
The closest thing I could find is this notebook:
However, in Martien’s case, he’s placing the svg directly as an Observable cell… for my use case, I’d like to host/pull it elsewhere (like from Gist or Github, etc).
Surely there’s a way! (I just have no idea how to do it…)
You should be able to use the
<image> tag and its
Hm, that’s not working for me. So this is what I’m trying to pull:
And here’s my code:
Looking at my dev console, this is what I see (I think this is related?):
However, when I hosted it elsewhere (like cloudapp), it seems to work.
But would be nice to host from github / gist… or am I asking too much?
Not sure… this SO answer says that adding
?sanitize=true to the end of the URL might help, and doing this seems to work for my test notebook in Chrome, but not Firefox. Maybe that’s good enough?
Wow, thanks so much! Yeah think that’s good enough!
Ack, sorry! I need this to be downloadable (rasterized or serialized), and this method seems to not work?
Is it because of the image tag? Or am I doing something wrong?