orangeqs.juice.reporting.visualization_utils#
This code is copied from quantify-core to keep this package lightweight and not depend on quantify core.
Module Contents#
Functions#
Read the first line of an html file and delete the line if it reads |
Data#
Type alias for data to be passed to plotting functions in this module. |
API#
- orangeqs.juice.reporting.visualization_utils.DataType#
None
Type alias for data to be passed to plotting functions in this module.
These dictionaries have as values the data series to be displayed in the figure and as keys are their associated labels.
- orangeqs.juice.reporting.visualization_utils.format_figure_html(filename: str, caption: str | None = None) None#
Read the first line of an html file and delete the line if it reads
<!DOCTYPE html>.Also add a caption to the figure if desired
This is needed because html files output by Bokeh always begin with this line, but the line is not expected by our markdown files, and therefore the
<!DOCTYPE html>is always printed as plain text in the output report.Parameters#
filename: Full path to the file
caption: The caption to add to the figure