|
4 | 4 | using Markdown |
5 | 5 | using InteractiveUtils |
6 | 6 |
|
7 | | -# 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). |
8 | | -macro bind(def, element) |
9 | | - #! format: off |
10 | | - return quote |
11 | | - local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end |
12 | | - local el = $(esc(element)) |
13 | | - global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el) |
14 | | - el |
15 | | - end |
16 | | - #! format: on |
17 | | -end |
18 | | - |
19 | 7 | # ╔═╡ 024e9237-bd37-4b0f-8f0b-541539d3d3f5 |
20 | 8 | using PlutoUI |
21 | 9 |
|
22 | | -# ╔═╡ ab728b68-2a54-4e99-baed-0456f5df4d1b |
23 | | -@bind x Slider(1:200) |
24 | | - |
25 | 10 | # ╔═╡ 1fa401f5-8a22-4cb6-a4df-d52506e8155a |
| 11 | +for i in 1:10 |
| 12 | + sleep(0.2) |
| 13 | + @info "A log reports" i=i |
| 14 | +end |
26 | 15 |
|
27 | | -1+x |
| 16 | +# ╔═╡ ab728b68-2a54-4e99-baed-0456f5df4d1b |
| 17 | +# ╠═╡ disabled = true |
| 18 | +#=╠═╡ |
| 19 | +@bind x Slider(1:200) |
| 20 | + ╠═╡ =# |
28 | 21 |
|
29 | 22 | # ╔═╡ d8f7f570-b4c9-4a0a-8b0f-3ad844626cff |
30 | 23 | 1+2 |
31 | 24 |
|
32 | 25 | # ╔═╡ f37f8661-eef4-4454-a9fc-657b6edfa836 |
33 | 26 | 7+4 |
34 | 27 |
|
| 28 | +# ╔═╡ 76c4fd26-fc7d-4c8d-b59f-6e2e435baed1 |
| 29 | +9+4 |
| 30 | + |
| 31 | +# ╔═╡ 0d0572fe-8eaf-48e7-8569-a145f3fd0e93 |
| 32 | +99 |
| 33 | + |
| 34 | +# ╔═╡ a12956bc-b34a-48bf-aefa-844835544a8f |
| 35 | +1234 |
| 36 | + |
| 37 | +# ╔═╡ b2f35bc0-eeb1-4e0a-bdc9-f0fdb61e1672 |
| 38 | +x = 4 |
| 39 | + |
| 40 | +# ╔═╡ dc90a5d2-e77d-4b94-a54b-a91722775f42 |
| 41 | +z, y, u = 1,2,3 |
| 42 | + |
| 43 | +# ╔═╡ 0094d2f2-9893-451d-b28e-2d24adbedc70 |
| 44 | +u*y*z |
| 45 | + |
| 46 | +# ╔═╡ f5d36126-c1dc-4421-a032-bd27edc5a5c0 |
| 47 | + |
| 48 | + |
35 | 49 | # ╔═╡ 00000000-0000-0000-0000-000000000001 |
36 | 50 | PLUTO_PROJECT_TOML_CONTENTS = """ |
37 | 51 | [deps] |
@@ -276,5 +290,12 @@ version = "1.64.0+1" |
276 | 290 | # ╠═ab728b68-2a54-4e99-baed-0456f5df4d1b |
277 | 291 | # ╠═d8f7f570-b4c9-4a0a-8b0f-3ad844626cff |
278 | 292 | # ╠═f37f8661-eef4-4454-a9fc-657b6edfa836 |
| 293 | +# ╠═76c4fd26-fc7d-4c8d-b59f-6e2e435baed1 |
| 294 | +# ╠═0d0572fe-8eaf-48e7-8569-a145f3fd0e93 |
| 295 | +# ╠═a12956bc-b34a-48bf-aefa-844835544a8f |
| 296 | +# ╠═b2f35bc0-eeb1-4e0a-bdc9-f0fdb61e1672 |
| 297 | +# ╠═dc90a5d2-e77d-4b94-a54b-a91722775f42 |
| 298 | +# ╠═0094d2f2-9893-451d-b28e-2d24adbedc70 |
| 299 | +# ╠═f5d36126-c1dc-4421-a032-bd27edc5a5c0 |
279 | 300 | # ╟─00000000-0000-0000-0000-000000000001 |
280 | 301 | # ╟─00000000-0000-0000-0000-000000000002 |
0 commit comments