Replace deprecated Base.download with Downloads.download
This commit is contained in:
parent
1426c95fd4
commit
e968fa1d76
@ -31,6 +31,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
|
|||||||
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
|
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
|
||||||
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
|
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
|
||||||
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
|
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
|
||||||
|
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
|
||||||
|
|
||||||
[compat]
|
[compat]
|
||||||
Contour = "0.5"
|
Contour = "0.5"
|
||||||
|
|||||||
@ -31,6 +31,7 @@ using Base.Meta
|
|||||||
@reexport using PlotThemes
|
@reexport using PlotThemes
|
||||||
import Showoff
|
import Showoff
|
||||||
import StatsBase
|
import StatsBase
|
||||||
|
import Downloads
|
||||||
import JSON
|
import JSON
|
||||||
|
|
||||||
using Requires
|
using Requires
|
||||||
|
|||||||
@ -125,7 +125,8 @@ const _examples = PlotExample[
|
|||||||
:(
|
:(
|
||||||
begin
|
begin
|
||||||
import FileIO
|
import FileIO
|
||||||
path = download(
|
import Downloads
|
||||||
|
path = Downloads.download(
|
||||||
"http://juliaplots.org/PlotReferenceImages.jl/Plots/pyplot/0.7.0/ref1.png",
|
"http://juliaplots.org/PlotReferenceImages.jl/Plots/pyplot/0.7.0/ref1.png",
|
||||||
)
|
)
|
||||||
img = FileIO.load(path)
|
img = FileIO.load(path)
|
||||||
|
|||||||
@ -98,7 +98,7 @@ function __init__()
|
|||||||
global plotly_local_file_path[] =
|
global plotly_local_file_path[] =
|
||||||
joinpath(@get_scratch!("plotly"), _plotly_min_js_filename)
|
joinpath(@get_scratch!("plotly"), _plotly_min_js_filename)
|
||||||
if !isfile(plotly_local_file_path[])
|
if !isfile(plotly_local_file_path[])
|
||||||
download(
|
Downloads.download(
|
||||||
"https://cdn.plot.ly/$(_plotly_min_js_filename)",
|
"https://cdn.plot.ly/$(_plotly_min_js_filename)",
|
||||||
plotly_local_file_path[],
|
plotly_local_file_path[],
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user