Skip to content

Commit

Permalink
fix license
Browse files Browse the repository at this point in the history
  • Loading branch information
richardreeve committed Jul 21, 2024
1 parent a13da0b commit be659dd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
12 changes: 9 additions & 3 deletions notebooks/InteractiveAfrica.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@ using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
local iv = try
Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"),
"AbstractPlutoDingetjes")].Bonds.initial_value
catch
b -> missing
end
local el = $(esc(element))
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el)
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) :
iv(el)
el
end
end

# ╔═╡ 108951ec-3ecf-4f0c-b5e4-e79d00b1bfac
begin
using EcoSISTEM
Expand Down
10 changes: 8 additions & 2 deletions notebooks/Introduction.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ using InteractiveUtils
# This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error).
macro bind(def, element)
quote
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
local iv = try
Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"),
"AbstractPlutoDingetjes")].Bonds.initial_value
catch
b -> missing
end
local el = $(esc(element))
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el)
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) :
iv(el)
el
end
end
Expand Down

0 comments on commit be659dd

Please sign in to comment.