- interpret.preserve(explanation, selector_key=None, file_name=None, **kwargs)#
Preserves an explanation’s visualization for Jupyter cell, or file.
If file_name is not None the following occurs: - For Plotly figures, saves to HTML using plot. - For dataframes, saves to HTML using to_html. - For strings (html), saves to HTML. - For Dash components, fails with exception. This is currently not supported.
explanation – An explanation.
selector_key – If integer, treat as index for explanation. Otherwise, looks up value in first column, gets index.
file_name – If assigned, will save the visualization to this filename.
**kwargs – Kwargs which are passed to the underlying render/export call.