From cedbdfeede133ea6143dcd688f87202ec5387509 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Fuhrmann?= Date: Mon, 25 Nov 2024 13:48:21 +0100 Subject: [PATCH] Format pluto notebook to satisfy precommit. However, see https://github.com/fredrikekre/Runic.jl/issues/107 --- examples/plutovista.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/plutovista.jl b/examples/plutovista.jl index 86afea4..15243c5 100644 --- a/examples/plutovista.jl +++ b/examples/plutovista.jl @@ -7,7 +7,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) #! format: off - quote + return 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 el = $(esc(element)) global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el)