Skip to content

Commit

Permalink
fix: πŸš‘οΈ fix notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ivaquero committed Aug 20, 2024
1 parent 1b4debb commit 4f296db
Show file tree
Hide file tree
Showing 15 changed files with 145 additions and 41 deletions.
14 changes: 11 additions & 3 deletions src/analysis/base_01_plutoui.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ b721b6dc-c66a-400c-8f8f-253ea8acb18f
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ d0884674-dc0e-11ed-188a-8d07ea88e62b
Expand Down
8 changes: 6 additions & 2 deletions src/analysis/data_01_man.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ using InteractiveUtils
# ╔═║ bbb110f4-eb0c-45e8-8456-85a951ecbfee
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ a6999fdb-d20a-4a13-b7e9-eee118eb98fa
Expand Down
14 changes: 11 additions & 3 deletions src/math/math_01_calculus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ 680cfeeb-3159-465d-9df2-f632edbe8ceb
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 34e60bb1-7e43-459a-ba02-08b63ea092d1
Expand Down
14 changes: 11 additions & 3 deletions src/math/math_02_ode_1st.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ 42f2dc7e-b3db-4c45-8ba6-3a1470e01edc
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 17c89fe7-4d64-4b3f-9d5e-5f57f932b3eb
Expand Down
14 changes: 11 additions & 3 deletions src/math/math_03_ode_2nd.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ aaaa0553-0b07-4fcf-a249-d48fd3a623cf
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 85838d71-5f65-4e17-8c00-87cf7a1b58ee
Expand Down
14 changes: 11 additions & 3 deletions src/math/math_04_ode_system.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ 835e13a7-badc-4bb4-92ee-61afa3972a71
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 07582e60-4d07-49b8-a6ab-e962eec8d81b
Expand Down
14 changes: 11 additions & 3 deletions src/math/math_05_attractors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ 42059750-855e-49e4-87e3-0c2238aff2af
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 0a619df8-1d09-4fc4-bfb3-ea29d07f6e22
Expand Down
14 changes: 11 additions & 3 deletions src/math/math_06_sde.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ d3fde8a5-8cfe-49d4-af5d-2b5bd340f528
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 408a51cf-e35c-47ce-9dd6-c636bc938683
Expand Down
14 changes: 11 additions & 3 deletions src/math/math_07_pde.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ 9f1b8143-4882-4a55-8d0a-e2a09e1e6269
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ b9bc3e57-74cd-4c9c-b5d9-726deec6c79d
Expand Down
8 changes: 6 additions & 2 deletions src/prob/prob_1_distributions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ end
# ╔═║ da32c4aa-e936-4f1d-b327-d3396a0d06c3
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ aaf27acb-a9e5-4674-8d66-4bb6bdbc44ba
Expand Down
8 changes: 6 additions & 2 deletions src/prob/prob_2_linreg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ using InteractiveUtils
# ╔═║ 92af5ce3-e6b7-47b4-afc0-7f68dabc66ad
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 2afc5904-5084-4d49-b2a7-9d52a58e2ba2
Expand Down
14 changes: 11 additions & 3 deletions src/prob/prob_3_logreg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ d8134e3a-ca12-419d-81eb-d64a7e0e5969
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 9e1f8648-f895-4171-972c-1aa89d167637
Expand Down
14 changes: 11 additions & 3 deletions src/prob/prob_4_posreg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ f636175b-3889-4b73-bc2f-355cd8d0b4d1
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 525bc515-010c-4bbd-bd29-33e6b02bad50
Expand Down
8 changes: 6 additions & 2 deletions src/prob/prob_5_timeseries.jl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ md"# Bayesian Time Series"
# ╔═║ 00bd0968-a0de-4aad-8aa3-bf5d955682c6
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ 52a8f7b1-ae66-4a34-97ff-f3b0e42afd75
Expand Down
14 changes: 11 additions & 3 deletions src/prob/prob_6_ode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ 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)
el
Expand All @@ -25,8 +29,12 @@ end
# ╔═║ 45758ef7-a24a-4e6a-8eba-b121abd70a17
begin
using Pkg
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
else
println(pwd())
end
end

# ╔═║ e78e9fce-4fd2-4dc8-9fd6-80c906926e45
Expand Down

0 comments on commit 4f296db

Please sign in to comment.