Source code for node_export_bokeh_figures

# 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.
from sympathy.api import node as synode
from sympathy.api.nodeconfig import Port, Ports, Tag, Tags

from sylib.bokeh.exporter import BokehFigureDataExporterBase
from sylib.export import base


[docs] class ExportBokehFigures(base.ExportMultiple, synode.Node): """Export Bokeh Figures to a selected data format.""" name = 'Export Bokeh Figures' description = 'Export Bokeh Figures to html files.' icon = 'export_figure.svg' tags = Tags(Tag.Output.Export) author = 'Magnus Sandén' nodeid = 'org.sysess.sympathy.export.exportbokehfigures' inputs = Ports([Port.Custom('[bokeh]', 'Input figures', name='figures'), Port.Datasources( 'External filenames', name='port1', n=(0, 1, 0))]) plugins = (BokehFigureDataExporterBase, ) parameters = base.base_params() related = [ 'org.sysess.sympathy.visualize.bokehfigure', 'org.sysess.sympathy.visualize.bokehfiguresubplot', 'org.sysess.sympathy.export.exportbokehfigures']