Last active
January 14, 2021 22:59
-
-
Save fonsp/282d2d1b36217edb96c257d6ab402709 to your computer and use it in GitHub Desktop.
Examples of the new notebook format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### A Pluto.jl notebook ### | |
# v0.14.0 | |
using Markdown | |
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 el = $(esc(element)) | |
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing | |
el | |
end | |
end | |
# Package environment for this notebook: | |
PLUTO_PROJECT_TOML_CONTENTS = """ | |
[deps] | |
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8" | |
[compat] | |
PlutoUI = "^0.6.9" | |
""" | |
PLUTO_MANIFEST_TOML_CONTENTS = """ | |
# This file is machine-generated - editing it directly is not advised | |
[[Base64]] | |
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | |
[[Dates]] | |
deps = ["Printf"] | |
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | |
[[Logging]] | |
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" | |
[[Markdown]] | |
deps = ["Base64"] | |
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" | |
[[PlutoUI]] | |
deps = ["Base64", "Dates", "Logging", "Markdown", "Random", "Suppressor"] | |
git-tree-sha1 = "e453271bb6e5493e1fd98d72752ab1a9ee1eb6a6" | |
uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8" | |
version = "0.6.11" | |
[[Printf]] | |
deps = ["Unicode"] | |
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | |
[[Random]] | |
deps = ["Serialization"] | |
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | |
[[Serialization]] | |
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | |
[[Suppressor]] | |
git-tree-sha1 = "a819d77f31f83e5792a76081eee1ea6342ab8787" | |
uuid = "fd094767-a336-5f1f-9728-57cf17d0bbfb" | |
version = "0.2.0" | |
[[Unicode]] | |
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" | |
""" | |
# ╔═╡ af499e2a-56b7-11eb-1969-47efb9dd3dd8 | |
using PlutoUI | |
# ╔═╡ af499e86-56b7-11eb-377b-335d9fe8eb88 | |
@bind x Slider(1:10) | |
# ╔═╡ af499eb8-56b7-11eb-09bf-15d382cec978 | |
x² | |
# ╔═╡ Cell order: | |
# ╠═af499e2a-56b7-11eb-1969-47efb9dd3dd8 | |
# ╠═af499e86-56b7-11eb-377b-335d9fe8eb88 | |
# ╠═af499eb8-56b7-11eb-09bf-15d382cec978 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### A Pluto.jl notebook ### | |
# v0.14.0 | |
using Markdown | |
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 el = $(esc(element)) | |
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing | |
el | |
end | |
end | |
# ╔═╡ af499e2a-56b7-11eb-1969-47efb9dd3dd8 | |
using PlutoUI | |
# ╔═╡ af499e86-56b7-11eb-377b-335d9fe8eb88 | |
@bind x Slider(1:10) | |
# ╔═╡ af499eb8-56b7-11eb-09bf-15d382cec978 | |
x² | |
# ╔═╡ 00000000-0000-0000-0000-000000000001 | |
PLUTO_PROJECT_TOML_CONTENTS = """ | |
[deps] | |
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8" | |
[compat] | |
PlutoUI = "^0.6.9" | |
""" | |
# ╔═╡ 00000000-0000-0000-0000-000000000002 | |
PLUTO_MANIFEST_TOML_CONTENTS = """ | |
# This file is machine-generated - editing it directly is not advised | |
[[Base64]] | |
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | |
[[Dates]] | |
deps = ["Printf"] | |
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | |
[[Logging]] | |
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" | |
[[Markdown]] | |
deps = ["Base64"] | |
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" | |
[[PlutoUI]] | |
deps = ["Base64", "Dates", "Logging", "Markdown", "Random", "Suppressor"] | |
git-tree-sha1 = "e453271bb6e5493e1fd98d72752ab1a9ee1eb6a6" | |
uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8" | |
version = "0.6.11" | |
[[Printf]] | |
deps = ["Unicode"] | |
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | |
[[Random]] | |
deps = ["Serialization"] | |
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | |
[[Serialization]] | |
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | |
[[Suppressor]] | |
git-tree-sha1 = "a819d77f31f83e5792a76081eee1ea6342ab8787" | |
uuid = "fd094767-a336-5f1f-9728-57cf17d0bbfb" | |
version = "0.2.0" | |
[[Unicode]] | |
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" | |
""" | |
# ╔═╡ Cell order: | |
# ╠═af499e2a-56b7-11eb-1969-47efb9dd3dd8 | |
# ╠═af499e86-56b7-11eb-377b-335d9fe8eb88 | |
# ╠═af499eb8-56b7-11eb-09bf-15d382cec978 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### A Pluto.jl notebook ### | |
# v0.14.0 | |
using Markdown | |
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 el = $(esc(element)) | |
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing | |
el | |
end | |
end | |
# ╔═╡ af499e2a-56b7-11eb-1969-47efb9dd3dd8 | |
using PlutoUI | |
# ╔═╡ af499e86-56b7-11eb-377b-335d9fe8eb88 | |
@bind x Slider(1:10) | |
# ╔═╡ af499eb8-56b7-11eb-09bf-15d382cec978 | |
x² | |
# ╔═╡ Cell order: | |
# ╠═af499e2a-56b7-11eb-1969-47efb9dd3dd8 | |
# ╠═af499e86-56b7-11eb-377b-335d9fe8eb88 | |
# ╠═af499eb8-56b7-11eb-09bf-15d382cec978 | |
# ╔═╡ Package environment: | |
PLUTO_PROJECT_TOML_CONTENTS = """ | |
[deps] | |
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8" | |
[compat] | |
PlutoUI = "^0.6.9" | |
""" | |
PLUTO_MANIFEST_TOML_CONTENTS = """ | |
# This file is machine-generated - editing it directly is not advised | |
[[Base64]] | |
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" | |
[[Dates]] | |
deps = ["Printf"] | |
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a" | |
[[Logging]] | |
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" | |
[[Markdown]] | |
deps = ["Base64"] | |
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a" | |
[[PlutoUI]] | |
deps = ["Base64", "Dates", "Logging", "Markdown", "Random", "Suppressor"] | |
git-tree-sha1 = "e453271bb6e5493e1fd98d72752ab1a9ee1eb6a6" | |
uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8" | |
version = "0.6.11" | |
[[Printf]] | |
deps = ["Unicode"] | |
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" | |
[[Random]] | |
deps = ["Serialization"] | |
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" | |
[[Serialization]] | |
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" | |
[[Suppressor]] | |
git-tree-sha1 = "a819d77f31f83e5792a76081eee1ea6342ab8787" | |
uuid = "fd094767-a336-5f1f-9728-57cf17d0bbfb" | |
version = "0.2.0" | |
[[Unicode]] | |
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment