Plots.jl
Plots.jl copied to clipboard
feat: use artifacts instead of PlotlyJS
Alternative to #4862, includes #4863
Replaces the download from CDN/scratchspace with an artifact
The advantage of this PR over #4862 is that this PR will always have access to the plotly.min.js
asset, while #4862 only works when PlotlyJS is loaded by the user, right?
The advantage of this PR over #4862 is that this PR will always have access to the
plotly.min.js
asset, while #4862 only works when PlotlyJS is loaded by the user, right?
Yes, exactly. We also directly link to the Plotly release assets, which is also the disadvantage of this PR (the artifact being 110MB)
@pankgeorg I created a repository last week to experiment with javascript and bundling that might be relevant for this. The repo is at https://github.com/disberd/PlotlyArtifactsESM and it automatically bundles and release in an artifact ready format the plotly library. If you are still pursuing this you might have a look at it and let me know if it can be used or if you see issues with its implementation.
I am planning on using this in PlutoPlotly for the next release