From bd23386c2c0c038106e83c85c42decdde7882184 Mon Sep 17 00:00:00 2001 From: ivaquero Date: Thu, 22 Aug 2024 22:07:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=9A=91=EF=B8=8F=20fix=20notebooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/math/math_01_calculus.jl | 7 ++----- src/prob/prob_1_distributions.jl | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/math/math_01_calculus.jl b/src/math/math_01_calculus.jl index 41405f9..6acb161 100644 --- a/src/math/math_01_calculus.jl +++ b/src/math/math_01_calculus.jl @@ -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 @@ -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 diff --git a/src/prob/prob_1_distributions.jl b/src/prob/prob_1_distributions.jl index 9c27933..ee76ba8 100644 --- a/src/prob/prob_1_distributions.jl +++ b/src/prob/prob_1_distributions.jl @@ -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