Maidr.save_html
Maidr.save_html(file, *, lib_dir='lib', include_version=True, data_in_svg=True)Save the HTML representation of the figure with MAIDR to a file.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| file | str | The file to save to. | required |
| lib_dir | str | The directory to save the dependencies to (relative to the file’s directory). | "lib" |
| include_version | bool | Whether to include the version number in the dependency folder name. | True |
| data_in_svg | bool | Controls where the MAIDR JSON payload is placed in the output HTML or SVG. | True |