diff --git a/src/analysis/base_01_plutoui.jl b/src/analysis/base_01_plutoui.jl index 4850429..195d039 100644 --- a/src/analysis/base_01_plutoui.jl +++ b/src/analysis/base_01_plutoui.jl @@ -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 @@ -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 diff --git a/src/analysis/data_01_man.jl b/src/analysis/data_01_man.jl index 04e4d40..bbb9eee 100644 --- a/src/analysis/data_01_man.jl +++ b/src/analysis/data_01_man.jl @@ -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 diff --git a/src/math/math_01_calculus.jl b/src/math/math_01_calculus.jl index 99e6be5..41405f9 100644 --- a/src/math/math_01_calculus.jl +++ b/src/math/math_01_calculus.jl @@ -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 @@ -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 diff --git a/src/math/math_02_ode_1st.jl b/src/math/math_02_ode_1st.jl index 2e589b1..8c632a7 100644 --- a/src/math/math_02_ode_1st.jl +++ b/src/math/math_02_ode_1st.jl @@ -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 @@ -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 diff --git a/src/math/math_03_ode_2nd.jl b/src/math/math_03_ode_2nd.jl index baab217..f184ca8 100644 --- a/src/math/math_03_ode_2nd.jl +++ b/src/math/math_03_ode_2nd.jl @@ -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 @@ -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 diff --git a/src/math/math_04_ode_system.jl b/src/math/math_04_ode_system.jl index 9fec705..a523ecf 100644 --- a/src/math/math_04_ode_system.jl +++ b/src/math/math_04_ode_system.jl @@ -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 @@ -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 diff --git a/src/math/math_05_attractors.jl b/src/math/math_05_attractors.jl index a324502..82e34cd 100644 --- a/src/math/math_05_attractors.jl +++ b/src/math/math_05_attractors.jl @@ -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 @@ -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 diff --git a/src/math/math_06_sde.jl b/src/math/math_06_sde.jl index fece7be..0e085f7 100644 --- a/src/math/math_06_sde.jl +++ b/src/math/math_06_sde.jl @@ -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 @@ -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 diff --git a/src/math/math_07_pde.jl b/src/math/math_07_pde.jl index 9f2d0fe..e674843 100644 --- a/src/math/math_07_pde.jl +++ b/src/math/math_07_pde.jl @@ -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 @@ -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 diff --git a/src/prob/prob_1_distributions.jl b/src/prob/prob_1_distributions.jl index 3d4975f..9c27933 100644 --- a/src/prob/prob_1_distributions.jl +++ b/src/prob/prob_1_distributions.jl @@ -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 diff --git a/src/prob/prob_2_linreg.jl b/src/prob/prob_2_linreg.jl index 260b578..231490c 100644 --- a/src/prob/prob_2_linreg.jl +++ b/src/prob/prob_2_linreg.jl @@ -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 diff --git a/src/prob/prob_3_logreg.jl b/src/prob/prob_3_logreg.jl index 3524d14..c7cc930 100644 --- a/src/prob/prob_3_logreg.jl +++ b/src/prob/prob_3_logreg.jl @@ -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 @@ -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 diff --git a/src/prob/prob_4_posreg.jl b/src/prob/prob_4_posreg.jl index 1fb1742..7924852 100644 --- a/src/prob/prob_4_posreg.jl +++ b/src/prob/prob_4_posreg.jl @@ -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 @@ -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 diff --git a/src/prob/prob_5_timeseries.jl b/src/prob/prob_5_timeseries.jl index fdec821..45c94ec 100644 --- a/src/prob/prob_5_timeseries.jl +++ b/src/prob/prob_5_timeseries.jl @@ -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 diff --git a/src/prob/prob_6_ode.jl b/src/prob/prob_6_ode.jl index 57230fb..e2ae25d 100644 --- a/src/prob/prob_6_ode.jl +++ b/src/prob/prob_6_ode.jl @@ -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 @@ -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