File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ function __init__()
95
95
@warn (" Warnings were generated during the last build of PlotlyJS: please check the build log at $_build_log " )
96
96
end
97
97
98
- @async _start_kaleido_process ()
98
+ kaleido_task = Base . Threads . @spawn _start_kaleido_process ()
99
99
100
100
if ! isfile (_js_path)
101
101
@info (" plotly.js javascript libary not found -- downloading now" )
@@ -163,6 +163,16 @@ function __init__()
163
163
dataset (:: Type{DataFrames.DataFrame} , name:: String ) = DataFrames. DataFrame (dataset (CSV. File, name))
164
164
end
165
165
end
166
+
167
+ wait (kaleido_task)
168
+
169
+ if ccall (:jl_generating_output , Cint, ()) == 1
170
+ # ensure precompilation of packages depending on PlotlyJS finishes
171
+ if isdefined (P, :proc )
172
+ close (P. stdin )
173
+ wait (P. proc)
174
+ end
175
+ end
166
176
end
167
177
168
178
# for methods that update the layout, first apply to the plot, then let plotly.js
You can’t perform that action at this time.
0 commit comments