Skip to content

Commit 4c8129d

Browse files
authored
Avoid having implicit imports. (#23)
* Avoid having implicit imports. * Change to explicit form.
1 parent 00b7a54 commit 4c8129d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/PlotlyKaleido.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module PlotlyKaleido
22

33
using JSON: JSON
4-
using Base64
5-
using Kaleido_jll
4+
using Base64: Base64
5+
using Kaleido_jll: Kaleido_jll
66

77
export savefig
88

@@ -75,8 +75,8 @@ function start(;
7575
kwargs...,
7676
)
7777
is_running() && return
78-
# The kaleido executable must be ran from the artifact directory
79-
BIN = Cmd(kaleido(); dir = Kaleido_jll.artifact_dir)
78+
# The kaleido executable must be run from the artifact directory
79+
BIN = Cmd(Kaleido_jll.kaleido(); dir = Kaleido_jll.artifact_dir)
8080
# We push the mandatory plotly flag
8181
push!(BIN.exec, "plotly")
8282
chromium_flags = ["--disable-gpu", Sys.isapple() ? "--single-process" : "--no-sandbox"]
@@ -170,7 +170,7 @@ If the process was killed due to an error during initialization, you will receiv
170170
img = String(obj["result"])
171171

172172
# base64 decode if needed, otherwise transcode to vector of byte
173-
bytes = format in TEXT_FORMATS ? transcode(UInt8, img) : base64decode(img)
173+
bytes = format in TEXT_FORMATS ? transcode(UInt8, img) : Base64.base64decode(img)
174174

175175
write(io, bytes)
176176
end

0 commit comments

Comments
 (0)