Skip to content

Commit

Permalink
Avoid having implicit imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jd-foster committed Nov 1, 2024
1 parent 00b7a54 commit 2a21f98
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PlotlyKaleido.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module PlotlyKaleido

using JSON: JSON
using Base64
using Kaleido_jll
import JSON
import Base64
import Kaleido_jll

export savefig

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

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

write(io, bytes)
end
Expand Down

0 comments on commit 2a21f98

Please sign in to comment.