diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index df172e84..89c97e54 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -887,7 +887,7 @@ const ijulia_initialized = Ref(false) function plotly_html_head(plt::Plot) plotly = - use_local_dependencies[] ? ("file:///" * plotly_local_file_path[]) : "https://cdn.plot.ly/plotly-latest.min.js" + use_local_dependencies[] ? ("file:///" * plotly_local_file_path[]) : "https://cdn.plot.ly/plotly-1.57.1.min.js" include_mathjax = get(plt[:extra_plot_kwargs], :include_mathjax, "") mathjax_file = include_mathjax != "cdn" ? ("file://" * include_mathjax) : "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML" diff --git a/src/init.jl b/src/init.jl index c15f099d..2a64844d 100644 --- a/src/init.jl +++ b/src/init.jl @@ -81,7 +81,7 @@ function __init__() if get(ENV, "PLOTS_HOST_DEPENDENCY_LOCAL", "false") == "true" global plotly_local_file_path[] = joinpath(@get_scratch!("plotly"), "plotly-1.54.2.min.js") if !isfile(plotly_local_file_path[]) - download("https://cdn.plot.ly/plotly-latest.min.js", plotly_local_file_path[]) + download("https://cdn.plot.ly/plotly-1.57.1.min.js", plotly_local_file_path[]) end use_local_plotlyjs[] = true