You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Manually use Kaleido@v0.1 on windows with explicit artifact (#25)
* ship kaleido v0.1 as own artifact on windows
* use artifact"" only on Windows
* test absence of `@warn` for start on Windows
* adapt warning on timeout
* add mention to the README
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,4 +67,8 @@ begin
67
67
import Pkg
68
68
Pkg.add(; name ="Kaleido_jll", version ="0.1")
69
69
end
70
+
71
+
The package will now default to using an explicitly provided version of Kaleido 0.1 on Windows systems without requiring to explicitly fix the version of `Kaleido_jll`in your project environment.
72
+
73
+
To disable this automatic fallback, you can set `PlotlyKaleido.USE_KALEIDO_FALLBACK[] = false`.
out ==="Stopped"&&warn_and_kill("It looks like the Kaleido process is not responding.
60
-
The unresponsive process will be killed, but this means that you will not be able to save figures using `savefig`.
72
+
if out ==="Stopped"
73
+
warn_str ="It looks like the Kaleido process is not responding since $(timeout) seconds.
74
+
The unresponsive process will be killed, but this means that you will not be able to save figures using `savefig`."
75
+
76
+
ifshould_try_fallback() &&!USE_KALEIDO_FALLBACK[]
77
+
warn_str *="
61
78
62
-
If you are on Windows this might be caused by known problems with Kaleido v0.2 on Windows (you are using version $(kaleido_version)).
63
-
You might want to try forcing a downgrade of the Kaleido_jll library to 0.1.
64
-
Check the Package Readme at https://github.com/JuliaPlots/PlotlyKaleido.jl/tree/main#windows-note for more details.
79
+
You seem to be on Windows but have disabled the automatic fallback to version 0.1 of Kaleido. You may want to try enabling it by calling `PlotlyKaleido.USE_KALEIDO_FALLBACK[] = true`, as higher version of Kaleido are known to have issues on Windows.
80
+
Check the Package Readme at https://github.com/JuliaPlots/PlotlyKaleido.jl/tree/main#windows-note for more details."
81
+
end
65
82
66
-
If you think this is not your case, you might try using a longer timeout to check if the process is not responding (defaults to 10 seconds) by passing the desired value in seconds using the `timeout` kwarg when calling `PlotlyKaleido.start` or `PlotlyKaleido.restart`")
83
+
warn_str *="
84
+
85
+
Alternatively, you might try using a longer timeout to check if the process is not responding by passing the desired value in seconds using the `timeout` kwarg when calling `PlotlyKaleido.start` or `PlotlyKaleido.restart`"
0 commit comments