Trouble getting Weave to output plotly() based plots on HTML document

Hello everyone. When I put in the following:

using Plots
plotly()
plot(rand(10))

And then output via weave using:

weave((“doctest.jmd”), out_path=:pwd,doctype=“md2html”)

I get this:

Error:
[ Info: Weaving chunk 1 from line 7
┌ Warning: ERROR: BoundsError occurred, including output in Weaved document
└ @ Weave ~/.julia/packages/Weave/UOxmI/src/run.jl:243
[ Info: Report weaved to test.html
[ Info: Weaving chunk 1 from line 7
┌ Warning: ERROR: BoundsError occurred, including output in Weaved document
└ @ Weave ~/.julia/packages/Weave/UOxmI/src/run.jl:243
[ Info: Report weaved to test.html

With plotlyjs() I get this:

It works well for me. So I think you may have to check packages version

  • Julia 1.3.0
  • Weave v0.9.1
  • Plots v0.28.1

Thanks a lot for checking.

julia> pkgs["Weave"]
v"0.9.1"

julia> pkgs["Plots"]
v"0.29.0"

On Julia Version 1.0.3. I’m on Debian. Not sure what to fiddle with. The documentation said to produce it from the terminal (I’m on Juno) but still to no success.

Working after an update to Julia Version 1.2 (in JuliaPro)

Not working for :
Julia v1.7.3
Weave v0.10.9
Plots v1.33.0