I produced a plot with Plots.jl and plotly backend. In jupyter notebook, this plot has basic interactivity like zooming and tooltips. I would like to save it to say HTML so that this basic interactivity is preserved. I tried
using Plots
plotly()
plt = plot(randn(100))
Plots.html(plt, "hello")
but when I open “hello.html” in the browser I see just an empty page.
Interesting. It turns out that Plots.html works for me if I run it in the repl. If I run it in jupyter instaed, the resulting file is broken (show an empty webpage).
Possibly not the real thing but FWIW, tested in the Jupyter extension for VS Code your initial plotly() example and it saved a proper html that could be zoomed.