Skip to content

Commit d062761

Browse files
committed
rely less on Requires.jl
1 parent 8dc738b commit d062761

File tree

3 files changed

+6
-69
lines changed

3 files changed

+6
-69
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Observables = "510215fc-4207-5dde-b226-833fc4488ee2"
99
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1010
AssetRegistry = "bf4720bc-e11a-5d0c-854e-bdca1663c893"
1111
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
12+
Mux = "a975b10e-0019-58db-a62f-e48ff68538c9"
1213
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
1314
Widgets = "cc8bc4a8-27d6-5769-a93b-9d913e69aa62"
1415
JSON = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
@@ -25,7 +26,6 @@ Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
2526
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
2627
JSExpr = "97c1335a-c9c5-57fe-bc5d-ec35cebe8660"
2728
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
28-
Mux = "a975b10e-0019-58db-a62f-e48ff68538c9"
2929
Blink = "ad839575-38b3-5650-b840-f874b8c74a25"
3030
NBInclude = "0db19996-df87-5ea3-a455-e3a50d440464"
3131
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

src/WebIO.jl

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import Widgets
88
import Widgets: node, AbstractWidget
99
using Logging
1010
using UUIDs
11+
using Mux
12+
using WebSockets
1113

1214
include("../deps/bundlepaths.jl")
1315

@@ -93,35 +95,16 @@ function prefetch_provider_file(basename)
9395
(file = filepath, code = code)
9496
end
9597

96-
provider_mux = prefetch_provider_file("mux.jl")
97-
provider_blink = prefetch_provider_file("blink.jl")
98+
include("providers/mux.jl")
99+
include("providers/generic_http.jl")
100+
98101
provider_ijulia = prefetch_provider_file("ijulia.jl")
99-
provider_generic_http = prefetch_provider_file("generic_http.jl")
100102

101103
function __init__()
102104
push!(Observables.addhandler_callbacks, WebIO.setup_comm)
103-
@require Mux="a975b10e-0019-58db-a62f-e48ff68538c9" begin
104-
include_string(@__MODULE__, provider_mux.code, provider_mux.file)
105-
end
106-
@require Blink="ad839575-38b3-5650-b840-f874b8c74a25" begin
107-
# The latest version of Blink defines their own WebIO integration
108-
# (after https://github.com/JunoLab/Blink.jl/pull/201).
109-
if isdefined(Blink.AtomShell, :initwebio!)
110-
return
111-
end
112-
Base.depwarn(
113-
"Please upgrade Blink for a smoother integration with WebIO.",
114-
:webio_blink_upgrade,
115-
)
116-
include_string(@__MODULE__, provider_blink.code, provider_blink.file)
117-
end
118105
@require IJulia="7073ff75-c697-5162-941a-fcdaad2a7d2a" begin
119106
include_string(@__MODULE__, provider_ijulia.code, provider_ijulia.file)
120107
end
121-
@require WebSockets="104b5d7c-a370-577a-8038-80a2059c5097" begin
122-
include_string(@__MODULE__, provider_generic_http.code, provider_generic_http.file)
123-
end
124-
125108
end
126109

127110
end # module

src/providers/blink.jl

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)