Compare commits
3 Commits
master
...
bbs/jupyte
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f63d8409f8 | ||
|
|
d1f648493d | ||
|
|
5e14001d13 |
@ -4,7 +4,7 @@ const use_local_plotlyjs = Ref(false)
|
|||||||
|
|
||||||
function _init_ijulia_plotting()
|
function _init_ijulia_plotting()
|
||||||
# IJulia is more stable with local file
|
# 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"
|
ENV["MPLBACKEND"] = "Agg"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -11,7 +11,9 @@ import GeometryTypes, GeometryBasics
|
|||||||
using Dates
|
using Dates
|
||||||
using RecipesBase
|
using RecipesBase
|
||||||
|
|
||||||
|
|
||||||
@testset "Plotly standalone" begin
|
@testset "Plotly standalone" begin
|
||||||
|
@test_nowarn Plots._init_ijulia_plotting()
|
||||||
@test Plots.plotly_local_file_path[] === nothing
|
@test Plots.plotly_local_file_path[] === nothing
|
||||||
temp = Plots.use_local_dependencies[]
|
temp = Plots.use_local_dependencies[]
|
||||||
withenv("PLOTS_HOST_DEPENDENCY_LOCAL" => true) do
|
withenv("PLOTS_HOST_DEPENDENCY_LOCAL" => true) do
|
||||||
@ -19,6 +21,7 @@ using RecipesBase
|
|||||||
@test Plots.plotly_local_file_path[] isa String
|
@test Plots.plotly_local_file_path[] isa String
|
||||||
@test isfile(Plots.plotly_local_file_path[])
|
@test isfile(Plots.plotly_local_file_path[])
|
||||||
@test Plots.use_local_dependencies[] = true
|
@test Plots.use_local_dependencies[] = true
|
||||||
|
@test_nowarn Plots._init_ijulia_plotting()
|
||||||
end
|
end
|
||||||
Plots.plotly_local_file_path[] = nothing
|
Plots.plotly_local_file_path[] = nothing
|
||||||
Plots.use_local_dependencies[] = temp
|
Plots.use_local_dependencies[] = temp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user