|
| 1 | +### A Pluto.jl notebook ### |
| 2 | +# v0.11.4 |
| 3 | + |
| 4 | +using Markdown |
| 5 | +using InteractiveUtils |
| 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 | + quote |
| 10 | + local el = $(esc(element)) |
| 11 | + global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing |
| 12 | + el |
| 13 | + end |
| 14 | +end |
| 15 | + |
| 16 | +# ╔═╡ 7079ec54-d3f6-11ea-0034-79a1c1c5b137 |
| 17 | +md"# The Basel problem |
| 18 | +_Leonard Euler_ proved in 1741 that the series |
| 19 | +$$\frac{1}{1} + \frac{1}{4} + \frac{1}{9} + \cdots$$ |
| 20 | +converges to |
| 21 | +$$\frac{\pi^2}{6}$$" |
| 22 | + |
| 23 | +# ╔═╡ cce045ac-d373-11ea-29af-5be52ed80e36 |
| 24 | +md"## Test Pluto notebook" |
| 25 | + |
| 26 | +# ╔═╡ 4d6bd562-d836-11ea-0756-11ef4bf1b67d |
| 27 | +md""" |
| 28 | + [^1] footnote 1 |
| 29 | +
|
| 30 | + [^note] Footnote 2 |
| 31 | +
|
| 32 | + [^asdf]: I am a reference to asdf |
| 33 | +""" |
| 34 | + |
| 35 | +# ╔═╡ be082f3c-d836-11ea-0b9a-7bd30ac3939a |
| 36 | +md"Hey I am referencing [^1], [^two] and [^another_one_here]. |
| 37 | +
|
| 38 | + [^another_one_here]: Heyy" |
| 39 | + |
| 40 | +# ╔═╡ 82aff0b0-d7f4-11ea-0425-858a365a7bf5 |
| 41 | +using Pkg |
| 42 | + |
| 43 | +# ╔═╡ 6d6e761e-d979-11ea-2ad8-7904c919e31f |
| 44 | +begin |
| 45 | + using Pluto |
| 46 | + Pluto.ENV_DEFAULTS |
| 47 | +end |
| 48 | + |
| 49 | +# ╔═╡ 8bb02eb6-d8b5-11ea-3c96-e5722e9c771d |
| 50 | +using PlutoUI |
| 51 | + |
| 52 | +# ╔═╡ e290ed2e-d8b5-11ea-0307-dfd62f6f6637 |
| 53 | +using StatsPlots |
| 54 | + |
| 55 | +# ╔═╡ 1df9a2c0-d8c5-11ea-0422-c1bf4be84abe |
| 56 | +using Distributions |
| 57 | + |
| 58 | +# ╔═╡ a1b39506-d278-11ea-1a13-05f75d56dbca |
| 59 | +VERSION |
| 60 | + |
| 61 | +# ╔═╡ 926695b4-d974-11ea-1dbd-ff56f8ab770e |
| 62 | +Text(sprint(versioninfo)) |
| 63 | + |
| 64 | +# ╔═╡ 4f4d4b4c-d7eb-11ea-2aad-4dd2949c05e8 |
| 65 | +Text(sprint(io -> Pkg.status(io=io, "StructuralCausalModels"))) |
| 66 | + |
| 67 | +# ╔═╡ 90b4aa18-d8b5-11ea-0451-ab8a9469fc2f |
| 68 | +@bind μ Slider(-10:10, default=0) |
| 69 | + |
| 70 | +# ╔═╡ 77b37a66-d8c5-11ea-25b4-4fdff072ee88 |
| 71 | +@bind σ Slider(0:10, default=2) |
| 72 | + |
| 73 | +# ╔═╡ b78c317e-d8b5-11ea-3f90-c1a334efc497 |
| 74 | +density(rand(Normal(μ, σ), 500), lab="Normal(μ=$μ, σ=$σ)") |
| 75 | + |
| 76 | +# ╔═╡ 4c4e6dfa-d97d-11ea-3d50-5747bde72cfb |
| 77 | +@bind vegetable Select(["potato", "carrot"]) |
| 78 | + |
| 79 | +# ╔═╡ 69ea345c-d97d-11ea-3f18-bbe58107c237 |
| 80 | +@bind debug CheckBox(default=false) |
| 81 | + |
| 82 | +# ╔═╡ Cell order: |
| 83 | +# ╟─7079ec54-d3f6-11ea-0034-79a1c1c5b137 |
| 84 | +# ╟─cce045ac-d373-11ea-29af-5be52ed80e36 |
| 85 | +# ╠═a1b39506-d278-11ea-1a13-05f75d56dbca |
| 86 | +# ╠═926695b4-d974-11ea-1dbd-ff56f8ab770e |
| 87 | +# ╠═82aff0b0-d7f4-11ea-0425-858a365a7bf5 |
| 88 | +# ╠═4f4d4b4c-d7eb-11ea-2aad-4dd2949c05e8 |
| 89 | +# ╠═6d6e761e-d979-11ea-2ad8-7904c919e31f |
| 90 | +# ╟─4d6bd562-d836-11ea-0756-11ef4bf1b67d |
| 91 | +# ╠═be082f3c-d836-11ea-0b9a-7bd30ac3939a |
| 92 | +# ╠═8bb02eb6-d8b5-11ea-3c96-e5722e9c771d |
| 93 | +# ╠═e290ed2e-d8b5-11ea-0307-dfd62f6f6637 |
| 94 | +# ╠═1df9a2c0-d8c5-11ea-0422-c1bf4be84abe |
| 95 | +# ╠═90b4aa18-d8b5-11ea-0451-ab8a9469fc2f |
| 96 | +# ╠═77b37a66-d8c5-11ea-25b4-4fdff072ee88 |
| 97 | +# ╠═b78c317e-d8b5-11ea-3f90-c1a334efc497 |
| 98 | +# ╠═4c4e6dfa-d97d-11ea-3d50-5747bde72cfb |
| 99 | +# ╠═69ea345c-d97d-11ea-3f18-bbe58107c237 |
0 commit comments