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 22, 2024
1 parent 636d171 commit bd23386
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/math/math_01_calculus.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@ 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 @@ -32,6 +28,7 @@ begin
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
Pkg.precompile("ForwardDiff", strict=true)
else
println(pwd())
end
Expand Down
1 change: 1 addition & 0 deletions src/prob/prob_1_distributions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ begin
if isdir("../../pluto-deployment-environment")
Pkg.activate("../../pluto-deployment-environment")
Pkg.instantiate()
Pkg.precompile("Distributions", strict=true)
else
println(pwd())
end
Expand Down

0 comments on commit bd23386

Please sign in to comment.