-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlotlyJs.savefig() doesn't save static image - Kaleido is not avaiable #461
Comments
I have the same problem, also running on Windows. Maybe a problem with the Windows Kaleido_jll binary? |
I'm having a similar issue with producing images of plots. Not sure if it is relevant, but there seems to be confusion around Kaledio vs Kaleido: Which is different from @dlinhart14 's warning. I'm on and |
I can't reproduce this issue on the following machine julia> versioninfo()
Julia Version 1.8.5
Commit 17cfb8e65e (2023-01-08 06:45 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 16 × 11th Gen Intel(R) Core(TM) i9-11900K @ 3.50GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-13.0.1 (ORCJIT, rocketlake)
Threads: 1 on 16 virtual cores Maybe some antivirus software is blocking the execution of the kaleido process? |
Unfortunately, it is not caused by antivirus blocking and it still doesn't work. |
Hi,
I have this issus from few month now, the only solution I found is saving as HTML... But HTML isn't intente for the same use as PNG and other ! |
I'm not sure whether the problem I'm having is the same or not, but here are my code and error messages. using Plots
plotly()
xs=-5:1:5
ys=-5:1:5
var = [ x^2 + y^2 for x in xs, y in ys]
#p = contourf(xs, ys, var; color=:redsblues, levels=5:5:40)
p = contourf(xs, ys, var)
savefig(p, "tmp.png") and
I'm using julia 1.9.2 from |
Downgrading Julia to 1.5.4 solves the problem for me. |
Reverted back to Julia 1.9.4 and followed step 2 in sglyon/PlotlyBase.jl#40 (comment). It worked for me. |
I have this problem as well, and haven't found a combination of downgraded versions of either Julia or PlotlyJS, that makes PlotlyJS work on windows. Not being able to save figures is a game breaker. Unfortunately @make296 's solution did not work for me.
|
@mattcbro Did you first install PlotlyJS and then replace the Kaleido folder? |
This should be solved now. See the related comment in #473 (comment) for more details |
Describe the bug
When running simple
PlotlyJS.savefig(PlotlyJS.Plot(PlotlyJS.scatter(x=[1,2,3],y=[10,20,30])),"test.png")
nothing happens, empty .png file is created and executing is not finished. When executing is interrupted, following message is thrown:Same code created a year ago works, even when updated to latest versions. However, on any other pc it doesn't work even when downgraded PlotlyJS to v0.14.0, adding Kaleido by
]add Kaleido
do not help either.Version info
The text was updated successfully, but these errors were encountered: