Skip to content

plotly.js version is stuck at 1.58.5 rather than 2.2.1 #394

@thchr

Description

@thchr

My impression from 256f8f3 commit message was that PlotlyJS.jl would now be using plotly.js v2.21 - but it seems it is in fact still using v1.58.5. Specifically, looking at these two lines in /src/PlotlyJS.jl and testing them out (from the PlotlyJS.jl package directory), we see that:

using Pkg.Artifacts
_js_path = joinpath(artifact"plotly-artifacts", "plotly.min.js")
println.(readlines(_js_path )[1:2]);

gives

/**
* plotly.js v1.58.5

and similarly so for

using HTTP
_js_cdn_path = "https://cdn.plot.ly/plotly-latest.min.js"
println.(readlines(HTTP.download(_js_cdn_path))[1:2])

Of course, this is all on v0.18.0:

(@v1.6) pkg> st PlotlyJS
      Status `C:\Users\tchr\.julia\environments\v1.6\Project.toml`
  [f0f68f2c] PlotlyJS v0.18.0 `C:\Users\tchr\.julia\dev\PlotlyJS`

So, as a practical matter, my PlotlyJS.jl still seems to be using v1.58.5 rather than 2.2.1. I'm not sure if that's because I'm somehow stuck on an old artifact (I checked that the new artifact url definitely points to v2.2.1)? If so, I thought it would've automatically updated.
On the other hand, it doesn't seem right that _js_cdn_path still points to v1.58.5?

I stumbled upon this because I was hoping that the new version would include this fix from plotly.js plotly/plotly.js#4140.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions