Exporting from holoviews to png

I have a plot created in holoviews which I wish to export as a .png Is there a way to do it without having Selenium and Geckodriver in my environment

from python 3.6, holoviews 1.13.3 bokeh 2.2.1

  1. using the method holoviews.renderer() I can export to html without those dependencies but apparently not to .png
  2. using the bokeh method export_png(target, filename=“xyz.png”) produces the following error
ERROR: OutputDocumentFor expects a sequence of Models

Is there a way to do it without having Selenium and Geckodriver in my environment

Only to have Selenium and Chromedriver (and Chrome) installed instead. All Bokeh PNG and SVG export goes through a headless browser (i.e through Selenium), full stop.

1 Like