diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index 0330e149..34d43b9e 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -794,6 +794,11 @@ function _show(io::IO, ::MIME"image/svg+xml", plt::Plot{PlotlyBackend}) write(io, html_head(plt) * html_body(plt)) end +function Base.show(io::IO, ::MIME"text/html", plt::Plot{PlotlyBackend}) + prepare_output(plt) + write(io, html_head(plt) * html_body(plt)) +end + function _display(plt::Plot{PlotlyBackend}) standalone_html_window(plt) end diff --git a/src/output.jl b/src/output.jl index 48380006..99a55d50 100644 --- a/src/output.jl +++ b/src/output.jl @@ -172,7 +172,8 @@ const _best_html_output_type = KW( :pyplot => :png, :unicodeplots => :txt, :glvisualize => :png, - :plotlyjs => :html + :plotlyjs => :html, + :plotly => :html ) # a backup for html... passes to svg or png depending on the html_output_format arg