Skip to content

Commit

Permalink
Format pluto notebook to satisfy precommit.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-fu committed Nov 25, 2024
1 parent 95ead5a commit df9257f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/plutovista.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit df9257f

Please sign in to comment.