'Can the plotly.io.write_html be used to also plot images?

Usually, we use the line to plot graphs and confusion matrices. However, the official documentation doesn't really specify which types of figures are supported. Can I actually use it for image files? (I tried using it but it doesn't run properly, I don't know whether it was because of it not supporting it)



Solution 1:[1]

Based on the documentation, it supports a fig meaning a plotly figure object.

Unless you create a plotly figure object containing your image, you won't be able to use plotly.io.write_html(fig, ...)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Derek O