Skip to content

Commit ad819cb

Browse files
committed
use Bonito@master and wait for screenshots to be available
1 parent 4953082 commit ad819cb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

NetworkDynamicsInspector/src/serving.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ function save_electron_screenshot(path=joinpath(@__DIR__, "screenshot.png"))
145145
});
146146
"""
147147
wait_for()
148-
sleep(1) # make sure that axis updates and so on
148+
sleep(3) # make sure that axis updates and so on
149149
d = run(get_electron_app(), js)
150+
while !(isfile(path))
151+
sleep(0.1)
152+
end
150153
nothing
151154
end

docs/Project.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name = "ND.jl docs"
22

33
[deps]
4+
Bonito = "824d6782-a2ef-11e9-3a09-e5662e0c26f8"
45
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
56
DiffEqCallbacks = "459566f4-90b8-5000-8ac3-15dfb0a30def"
67
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
@@ -31,10 +32,12 @@ StyledStrings = "f489334b-da3d-4c2e-b8f0-e476e12c162b"
3132
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
3233

3334
[sources]
35+
Bonito = {url = "https://github.com/SimonDanisch/Bonito.jl", rev = "master"}
3436
NetworkDynamics = {path = ".."}
3537
NetworkDynamicsInspector = {path = "../NetworkDynamicsInspector"}
3638

3739
[compat]
40+
Bonito = "≥0.0.1"
3841
CairoMakie = "0.13.1"
3942
DiffEqCallbacks = "4.2.2"
4043
Distributions = "0.25.117"

0 commit comments

Comments
 (0)