Compare commits

...

3 Commits

Author SHA1 Message Date
Simon Christ f63d8409f8 Update runtests.jl 2020-10-22 22:27:10 +02:00
Simon Christ d1f648493d Update runtests.jl 2020-10-22 21:17:42 +02:00
Simon Christ 5e14001d13 fix jupyter 2020-10-22 21:13:43 +02:00
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const use_local_plotlyjs = Ref(false)
function _init_ijulia_plotting()
# IJulia is more stable with local file
use_local_plotlyjs[] = isfile(plotly_local_file_path[])
use_local_plotlyjs[] = plotly_local_file_path[] === nothing ? false : isfile(plotly_local_file_path[])
ENV["MPLBACKEND"] = "Agg"
end
+3
View File
@@ -11,7 +11,9 @@ import GeometryTypes, GeometryBasics
using Dates
using RecipesBase
@testset "Plotly standalone" begin
@test_nowarn Plots._init_ijulia_plotting()
@test Plots.plotly_local_file_path[] === nothing
temp = Plots.use_local_dependencies[]
withenv("PLOTS_HOST_DEPENDENCY_LOCAL" => true) do
@@ -19,6 +21,7 @@ using RecipesBase
@test Plots.plotly_local_file_path[] isa String
@test isfile(Plots.plotly_local_file_path[])
@test Plots.use_local_dependencies[] = true
@test_nowarn Plots._init_ijulia_plotting()
end
Plots.plotly_local_file_path[] = nothing
Plots.use_local_dependencies[] = temp