Source code for sylib.library.plugins.export.bokeh_figure_exporters.plugin_bokeh_exporter
# This file is part of Sympathy for Data.
# Copyright (c) 2022, Combine Control Systems AB
#
# SYMPATHY FOR DATA COMMERCIAL LICENSE
# You should have received a link to the License with Sympathy for Data.
import os
from sylib.bokeh import exporter
[docs]
class DataExportVectorized(exporter.BokehFigureDataExporterBase):
"""Exporter for Figure producing vectorized images."""
EXPORTER_NAME = "Html"
FILENAME_EXTENSION = None
def create_filenames(self, input_list, filename, *args):
return super().create_filenames(
input_list, filename, *args, ext="html")
def export_data(self, data, fq_outfilename, progress=None):
"""Export Figure to Image."""
if not os.path.exists(os.path.dirname(fq_outfilename)):
os.makedirs(os.path.dirname(fq_outfilename))
data.save_figure(fq_outfilename)