From cdaf9919c4bd92834458e3a52be861224cf00642 Mon Sep 17 00:00:00 2001 From: James Wrigley Date: Sun, 15 Jun 2025 13:54:54 +0200 Subject: [PATCH 1/3] Load RequireJS explictly for Plotly when running in IJulia --- .zenodo.json | 6 ++++++ src/backends/plotly.jl | 9 ++++++--- src/init.jl | 2 ++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.zenodo.json b/.zenodo.json index eb7341d1f..e7a7307de 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -779,6 +779,12 @@ { "name": "Patrick Jaap", "type": "Other" + }, + { + "affiliation": "European XFEL", + "name": "James Wrigley", + "orcid": "0009-0003-6525-7413", + "type": "Other" } ], "upload_type": "software" diff --git a/src/backends/plotly.jl b/src/backends/plotly.jl index b2c33a85c..675babdcd 100644 --- a/src/backends/plotly.jl +++ b/src/backends/plotly.jl @@ -1109,10 +1109,13 @@ function plotly_html_body(plt, style = nothing) uuid = UUIDs.uuid4() html = """
+ """ html diff --git a/src/init.jl b/src/init.jl index e36285dba..237bc17a3 100644 --- a/src/init.jl +++ b/src/init.jl @@ -24,6 +24,8 @@ use fixed version of Plotly instead of the latest one for stable dependency """ const _plotly_min_js_filename = "plotly-2.6.3.min.js" +const _requirejs_version = v"2.3.7" + """ Whether to use local embedded or local dependencies instead of CDN. """ From d7c90a18b64b15b47d505119bdcc99bc56ed7652 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Sun, 15 Jun 2025 15:04:00 +0200 Subject: [PATCH 2/3] Bump version --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index b62537e4c..bb4ef392a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Plots" uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" author = ["Tom Breloff (@tbreloff)"] -version = "1.40.13" +version = "1.40.14" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" From fb4c6dd83a7db003c98a760214b82aba1f118240 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sun, 15 Jun 2025 17:45:50 +0200 Subject: [PATCH 3/3] revert version bump --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index bb4ef392a..b62537e4c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Plots" uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" author = ["Tom Breloff (@tbreloff)"] -version = "1.40.14" +version = "1.40.13" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"