Holoviews: Improve documentation of file export with %%output

Created on 5 Dec 2017  路  5Comments  路  Source: holoviz/holoviews

Hi there,

I am trying to export an overlay figure as an svg using
%%output filename="chlorophyll" fig="svg"
But I get the following error:
Error: Value 'svg' for key 'fig' not one of ['html', 'json', 'auto', 'png']

I can use %%output filename="chlorophyll" fig="png" to successfully export a png. Am I missing something obvious? The export documentation makes it sound like svg is supported.

Thanks for your help!

docs

Most helpful comment

Might be worth noting that in Exporting and Archiving under "Exporting specific files".

All 5 comments

Sounds like you're using the Bokeh extension. SVG is supported for the Matplotlib extension, but not yet for Bokeh. Bokeh itself supports exporting to SVG, but it's only partial support (each subfigure generates a separate SVG), and we haven't yet figured out a good way to get full support of the entire layout.

Got it! Thank you for that clarification and quick response!

Might be worth noting that in Exporting and Archiving under "Exporting specific files".

I'll repurpose this issue as a reminder to improve the docs.

We've now added hv.save which is documented in a number of places throughout the docs.

Was this page helpful?
0 / 5 - 0 ratings