11# ## A Pluto.jl notebook ###
2- # v0.19.41
2+ # v0.20.14
33
44# > [frontmatter]
55# > license_url = "https://github.com/JuliaPluto/featured/blob/2a6a9664e5428b37abe4957c1dca0994f4a8b7fd/LICENSES/Unlicense"
@@ -21,12 +21,14 @@ using InteractiveUtils
2121
2222# 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).
2323macro bind (def, element)
24- quote
24+ # ! format: off
25+ return quote
2526 local iv = try Base. loaded_modules[Base. PkgId (Base. UUID (" 6e696c72-6542-2067-7265-42206c756150" ), " AbstractPlutoDingetjes" )]. Bonds. initial_value catch ; b -> missing ; end
2627 local el = $ (esc (element))
2728 global $ (esc (def)) = Core. applicable (Base. get, el) ? Base. get (el) : iv (el)
2829 el
2930 end
31+ # ! format: on
3032end
3133
3234# ╔═╡ 571613a1-6b4b-496d-9a68-aac3f6a83a4b
@@ -481,6 +483,30 @@ return html`<h5>Hello world!</h5>`
481483</script>
482484""" )
483485
486+ # ╔═╡ f611bf4e-8d7a-415a-8633-e5b84afe08e6
487+ html " <span id=lodash>"
488+
489+ # ╔═╡ aaa3e85e-9b09-45ae-9c47-c14979cde65d
490+ md """
491+ # Lodash
492+ The [Lodash](https://lodash.com/) library is pre-imported, and is available with `_` inside your code.
493+ """
494+
495+ # ╔═╡ e32d8a7f-91e3-4d85-b1ca-b6afef83f433
496+ @htl ("""
497+ <script>
498+ const data = $(rand (1 : 10 , 15 ))
499+ const parted = _.partition(data, n => n % 2)
500+
501+ return html`<ul>\$ {
502+ _.map(parted, (ns) => {
503+ return html`<li>\$ {ns.join(", ")}</li>`
504+ })
505+ }</ul>`
506+
507+ </script>
508+ """ )
509+
484510# ╔═╡ 9d0e67d1-f6ed-4f1d-a181-28a6e9d7016a
485511html " <span id=this>"
486512
@@ -885,7 +911,7 @@ version = "0.11.5"
885911[[CompilerSupportLibraries_jll]]
886912deps = ["Artifacts", "Libdl"]
887913uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
888- version = "1.0.5+1 "
914+ version = "1.1.1+0 "
889915
890916[[Dates]]
891917deps = ["Printf"]
@@ -995,7 +1021,7 @@ version = "1.2.0"
9951021[[OpenBLAS_jll]]
9961022deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
9971023uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
998- version = "0.3.23+2 "
1024+ version = "0.3.23+4 "
9991025
10001026[[Parsers]]
10011027deps = ["Dates", "PrecompileTools", "UUIDs"]
@@ -1107,7 +1133,7 @@ version = "1.2.13+1"
11071133[[libblastrampoline_jll]]
11081134deps = ["Artifacts", "Libdl"]
11091135uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
1110- version = "5.8 .0+1 "
1136+ version = "5.11 .0+0 "
11111137
11121138[[nghttp2_jll]]
11131139deps = ["Artifacts", "Libdl"]
@@ -1163,6 +1189,9 @@ version = "17.4.0+2"
11631189# ╟─b79cb583-6ebb-411d-845e-0e68c1fd5e27
11641190# ╟─27231bd2-deb3-4c37-849e-b07782439dea
11651191# ╠═6ce86c19-6f05-4679-b6dc-bd5a9945f316
1192+ # ╟─f611bf4e-8d7a-415a-8633-e5b84afe08e6
1193+ # ╟─aaa3e85e-9b09-45ae-9c47-c14979cde65d
1194+ # ╠═e32d8a7f-91e3-4d85-b1ca-b6afef83f433
11661195# ╟─9d0e67d1-f6ed-4f1d-a181-28a6e9d7016a
11671196# ╟─a33c7d7a-8071-448e-abd6-4e38b5444a3a
11681197# ╠═91f3dab8-5521-44a0-9890-8d988a994076
0 commit comments