Skip to content

Commit

Permalink
use compat for UUIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
beOn committed Aug 16, 2018
1 parent c0f5573 commit 9ecda48
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ Base.copy(sp::SyncPlot) = fork(sp) # defined by each SyncPlot{TD}
# Display frontends #
# ----------------- #

using Compat.UUIDs

@require Juno include("displays/juno.jl")
@require WebIO include("displays/webio.jl")
include("displays/electron.jl")
Expand Down
6 changes: 3 additions & 3 deletions src/displays/electron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# ----------- #

mutable struct ElectronDisplay <: AbstractPlotlyDisplay
divid::Base.Random.UUID
divid::UUIDs.UUID
w
end

const ElectronPlot = SyncPlot{ElectronDisplay}

ElectronDisplay() = ElectronDisplay(Base.Random.uuid4(), nothing)
ElectronDisplay(divid::Base.Random.UUID) = ElectronDisplay(divid, nothing)
ElectronDisplay() = ElectronDisplay(UUIDs.uuid4(), nothing)
ElectronDisplay(divid::UUIDs.UUID) = ElectronDisplay(divid, nothing)
ElectronDisplay(p::Plot) = ElectronDisplay(p.divid)
ElectronPlot(p::Plot) = ElectronPlot(p, ElectronDisplay(p.divid))

Expand Down
2 changes: 1 addition & 1 deletion src/displays/ijulia.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# ---------------------- #

mutable struct JupyterDisplay <: AbstractPlotlyDisplay
divid::Base.Random.UUID
divid::UUIDs.UUID
displayed::Bool
cond::Condition # for getting data back from js
end
Expand Down

0 comments on commit 9ecda48

Please sign in to comment.