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
There seem to be some weird behavior with killing and restarting the process.
For what concerns killing, at least in the master code, killing kaleido does not seem to actually stop the underlying process as savefig can still be called and execute succesfully.
Try the following code:
using PlotlyKaleido
using PlotlyBase
begin
PlotlyKaleido.start()
PlotlyKaleido.kill_kaleido()
@info"Immediately" PlotlyKaleido.is_running()
sleep(0.1)
@info"After sleep" PlotlyKaleido.is_running()
savefig(Plot(rand(4)), "test.png") # This should not work but it correctly saves the figureend
The issue with is_running() only returning false after a small amount of time after a call to kill_kaleido() is what also cause issues with restart() as the command has to be called twice to actually restart the process, as the call here:
There seem to be some weird behavior with killing and restarting the process.
For what concerns killing, at least in the master code, killing kaleido does not seem to actually stop the underlying process as
savefig
can still be called and execute succesfully.Try the following code:
which outputs
and correctly generate the png file.
The issue with
is_running()
only returning false after a small amount of time after a call tokill_kaleido()
is what also cause issues withrestart()
as the command has to be called twice to actually restart the process, as the call here:PlotlyKaleido.jl/src/PlotlyKaleido.jl
Lines 24 to 28 in d0c390c
will simply exit from
start()
called immediately afterkill_kaleido()
because the process is seen as running still.The text was updated successfully, but these errors were encountered: