1 | initial version |
I don't know why, but SVG files get injected directly into the worksheet HTML, unlike PDF or other filetypes which just get a link. Here is a workaround,
P=plot(sin(x), (x,0,pi))
fn = 'plot.svg'
P.save(DATA+fn, figsize=[2,2])
html(r'<a href="data/'+fn+r'">plot</a>')
It's not very nice, but it does the job. You can now right click on the link and download the SVG file.