Skip to content

Commit 2e1e6c0

Browse files
authored
Merge pull request #122 from mitmath/update-notebooks-may-2022
Update all notebook packages
2 parents ac357bd + 1e660ca commit 2e1e6c0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+15591
-8086
lines changed

.github/workflows/ExportNotebooks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Install Julia
3333
uses: julia-actions/setup-julia@v1
3434
with:
35-
version: 1.6.0
35+
version: 1.7.2
3636
- name: Run Pluto notebooks
3737
run: julia --project=pluto-deployment-environment -e '
3838
import Pkg;

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

22
.DS_Store
33

4-
reduced_phil.png
4+
reduced_phil.png
5+
notebooks/week9/testCSVwrite.csv

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# -fonsi
99

10-
FROM julia:1.6.0
10+
FROM julia:1.7.2
1111

1212
# HTTP port
1313
EXPOSE 1234

notebooks/week0/hw0.jl

Lines changed: 293 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,27 @@
11
### A Pluto.jl notebook ###
2-
# v0.12.20
2+
# v0.19.4
33

44
using Markdown
55
using InteractiveUtils
66

77
# 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).
88
macro bind(def, element)
99
quote
10+
local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end
1011
local el = $(esc(element))
11-
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : missing
12+
global $(esc(def)) = Core.applicable(Base.get, el) ? Base.get(el) : iv(el)
1213
el
1314
end
1415
end
1516

17+
# ╔═╡ d6ee91ea-e750-11ea-1260-31ebf3ec6a9b
18+
using Compose
19+
20+
# ╔═╡ 5acd58e0-e856-11ea-2d3d-8329889fe16f
21+
using PlutoUI
22+
1623
# ╔═╡ fafae38e-e852-11ea-1208-732b4744e4c2
17-
md"_Homework 0, version 3 -- Spring 2021_"
24+
md"_Homework 0, version 4 -- Spring 2021_"
1825

1926
# ╔═╡ 7308bc54-e6cd-11ea-0eab-83f7535edf25
2027
# edit the code below to set your name and kerberos ID (i.e. email without @mit.edu)
@@ -225,33 +232,11 @@ Sierpinski's triangle is defined _recursively_:
225232
"
226233

227234
# ╔═╡ 6b8883f6-e7b3-11ea-155e-6f62117e123b
228-
md"To draw Sierpinski's triangle, we are going to use an external package, [_Compose.jl_](https://giovineitalia.github.io/Compose.jl/latest/tutorial). Let's set up a package environment and add the package.
235+
md"To draw Sierpinski's triangle, we are going to use an external package, [_Compose.jl_](https://giovineitalia.github.io/Compose.jl/latest/tutorial). Let's import it!
229236
230237
A package contains a coherent set of functionality that you can often use a black box according to its specification. There are [lots of Julia packages](https://juliahub.com/ui/Home).
231238
"
232239

233-
# ╔═╡ 851c03a4-e7a4-11ea-1652-d59b7a6599f0
234-
# setting up an empty package environment
235-
begin
236-
import Pkg
237-
Pkg.activate(mktempdir())
238-
Pkg.Registry.update()
239-
end
240-
241-
# ╔═╡ d6ee91ea-e750-11ea-1260-31ebf3ec6a9b
242-
# add (ie install) a package to our environment
243-
begin
244-
Pkg.add("Compose")
245-
# call `using` so that we can use it in our code
246-
using Compose
247-
end
248-
249-
# ╔═╡ 5acd58e0-e856-11ea-2d3d-8329889fe16f
250-
begin
251-
Pkg.add("PlutoUI")
252-
using PlutoUI
253-
end
254-
255240
# ╔═╡ dbc4da6a-e7b4-11ea-3b70-6f2abfcab992
256241
md"Just like the definition above, our `sierpinksi` function is _recursive_: it calls itself."
257242

@@ -366,6 +351,286 @@ has area **$(area_sierpinski(n))**
366351
367352
"""
368353

354+
# ╔═╡ 00000000-0000-0000-0000-000000000001
355+
PLUTO_PROJECT_TOML_CONTENTS = """
356+
[deps]
357+
Compose = "a81c6b42-2e10-5240-aca2-a61377ecd94b"
358+
PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
359+
360+
[compat]
361+
Compose = "~0.9.3"
362+
PlutoUI = "~0.7.38"
363+
"""
364+
365+
# ╔═╡ 00000000-0000-0000-0000-000000000002
366+
PLUTO_MANIFEST_TOML_CONTENTS = """
367+
# This file is machine-generated - editing it directly is not advised
368+
369+
julia_version = "1.7.0"
370+
manifest_format = "2.0"
371+
372+
[[deps.AbstractPlutoDingetjes]]
373+
deps = ["Pkg"]
374+
git-tree-sha1 = "8eaf9f1b4921132a4cff3f36a1d9ba923b14a481"
375+
uuid = "6e696c72-6542-2067-7265-42206c756150"
376+
version = "1.1.4"
377+
378+
[[deps.ArgTools]]
379+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
380+
381+
[[deps.Artifacts]]
382+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
383+
384+
[[deps.Base64]]
385+
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
386+
387+
[[deps.ColorTypes]]
388+
deps = ["FixedPointNumbers", "Random"]
389+
git-tree-sha1 = "63d1e802de0c4882c00aee5cb16f9dd4d6d7c59c"
390+
uuid = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
391+
version = "0.11.1"
392+
393+
[[deps.Colors]]
394+
deps = ["ColorTypes", "FixedPointNumbers", "Reexport"]
395+
git-tree-sha1 = "417b0ed7b8b838aa6ca0a87aadf1bb9eb111ce40"
396+
uuid = "5ae59095-9a9b-59fe-a467-6f913c188581"
397+
version = "0.12.8"
398+
399+
[[deps.Compat]]
400+
deps = ["Base64", "Dates", "DelimitedFiles", "Distributed", "InteractiveUtils", "LibGit2", "Libdl", "LinearAlgebra", "Markdown", "Mmap", "Pkg", "Printf", "REPL", "Random", "SHA", "Serialization", "SharedArrays", "Sockets", "SparseArrays", "Statistics", "Test", "UUIDs", "Unicode"]
401+
git-tree-sha1 = "b153278a25dd42c65abbf4e62344f9d22e59191b"
402+
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
403+
version = "3.43.0"
404+
405+
[[deps.CompilerSupportLibraries_jll]]
406+
deps = ["Artifacts", "Libdl"]
407+
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
408+
409+
[[deps.Compose]]
410+
deps = ["Base64", "Colors", "DataStructures", "Dates", "IterTools", "JSON", "LinearAlgebra", "Measures", "Printf", "Random", "Requires", "Statistics", "UUIDs"]
411+
git-tree-sha1 = "9a2695195199f4f20b94898c8a8ac72609e165a4"
412+
uuid = "a81c6b42-2e10-5240-aca2-a61377ecd94b"
413+
version = "0.9.3"
414+
415+
[[deps.DataStructures]]
416+
deps = ["Compat", "InteractiveUtils", "OrderedCollections"]
417+
git-tree-sha1 = "cc1a8e22627f33c789ab60b36a9132ac050bbf75"
418+
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
419+
version = "0.18.12"
420+
421+
[[deps.Dates]]
422+
deps = ["Printf"]
423+
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
424+
425+
[[deps.DelimitedFiles]]
426+
deps = ["Mmap"]
427+
uuid = "8bb1440f-4735-579b-a4ab-409b98df4dab"
428+
429+
[[deps.Distributed]]
430+
deps = ["Random", "Serialization", "Sockets"]
431+
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
432+
433+
[[deps.Downloads]]
434+
deps = ["ArgTools", "LibCURL", "NetworkOptions"]
435+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
436+
437+
[[deps.FixedPointNumbers]]
438+
deps = ["Statistics"]
439+
git-tree-sha1 = "335bfdceacc84c5cdf16aadc768aa5ddfc5383cc"
440+
uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
441+
version = "0.8.4"
442+
443+
[[deps.Hyperscript]]
444+
deps = ["Test"]
445+
git-tree-sha1 = "8d511d5b81240fc8e6802386302675bdf47737b9"
446+
uuid = "47d2ed2b-36de-50cf-bf87-49c2cf4b8b91"
447+
version = "0.0.4"
448+
449+
[[deps.HypertextLiteral]]
450+
deps = ["Tricks"]
451+
git-tree-sha1 = "c47c5fa4c5308f27ccaac35504858d8914e102f9"
452+
uuid = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
453+
version = "0.9.4"
454+
455+
[[deps.IOCapture]]
456+
deps = ["Logging", "Random"]
457+
git-tree-sha1 = "f7be53659ab06ddc986428d3a9dcc95f6fa6705a"
458+
uuid = "b5f81e59-6552-4d32-b1f0-c071b021bf89"
459+
version = "0.2.2"
460+
461+
[[deps.InteractiveUtils]]
462+
deps = ["Markdown"]
463+
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
464+
465+
[[deps.IterTools]]
466+
git-tree-sha1 = "fa6287a4469f5e048d763df38279ee729fbd44e5"
467+
uuid = "c8e1da08-722c-5040-9ed9-7db0dc04731e"
468+
version = "1.4.0"
469+
470+
[[deps.JSON]]
471+
deps = ["Dates", "Mmap", "Parsers", "Unicode"]
472+
git-tree-sha1 = "3c837543ddb02250ef42f4738347454f95079d4e"
473+
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
474+
version = "0.21.3"
475+
476+
[[deps.LibCURL]]
477+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
478+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
479+
480+
[[deps.LibCURL_jll]]
481+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
482+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
483+
484+
[[deps.LibGit2]]
485+
deps = ["Base64", "NetworkOptions", "Printf", "SHA"]
486+
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
487+
488+
[[deps.LibSSH2_jll]]
489+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
490+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
491+
492+
[[deps.Libdl]]
493+
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
494+
495+
[[deps.LinearAlgebra]]
496+
deps = ["Libdl", "libblastrampoline_jll"]
497+
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
498+
499+
[[deps.Logging]]
500+
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
501+
502+
[[deps.Markdown]]
503+
deps = ["Base64"]
504+
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
505+
506+
[[deps.MbedTLS_jll]]
507+
deps = ["Artifacts", "Libdl"]
508+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
509+
510+
[[deps.Measures]]
511+
git-tree-sha1 = "e498ddeee6f9fdb4551ce855a46f54dbd900245f"
512+
uuid = "442fdcdd-2543-5da2-b0f3-8c86c306513e"
513+
version = "0.3.1"
514+
515+
[[deps.Mmap]]
516+
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
517+
518+
[[deps.MozillaCACerts_jll]]
519+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
520+
521+
[[deps.NetworkOptions]]
522+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
523+
524+
[[deps.OpenBLAS_jll]]
525+
deps = ["Artifacts", "CompilerSupportLibraries_jll", "Libdl"]
526+
uuid = "4536629a-c528-5b80-bd46-f80d51c5b363"
527+
528+
[[deps.OrderedCollections]]
529+
git-tree-sha1 = "85f8e6578bf1f9ee0d11e7bb1b1456435479d47c"
530+
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
531+
version = "1.4.1"
532+
533+
[[deps.Parsers]]
534+
deps = ["Dates"]
535+
git-tree-sha1 = "1285416549ccfcdf0c50d4997a94331e88d68413"
536+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
537+
version = "2.3.1"
538+
539+
[[deps.Pkg]]
540+
deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
541+
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
542+
543+
[[deps.PlutoUI]]
544+
deps = ["AbstractPlutoDingetjes", "Base64", "ColorTypes", "Dates", "Hyperscript", "HypertextLiteral", "IOCapture", "InteractiveUtils", "JSON", "Logging", "Markdown", "Random", "Reexport", "UUIDs"]
545+
git-tree-sha1 = "670e559e5c8e191ded66fa9ea89c97f10376bb4c"
546+
uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8"
547+
version = "0.7.38"
548+
549+
[[deps.Printf]]
550+
deps = ["Unicode"]
551+
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
552+
553+
[[deps.REPL]]
554+
deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
555+
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
556+
557+
[[deps.Random]]
558+
deps = ["SHA", "Serialization"]
559+
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
560+
561+
[[deps.Reexport]]
562+
git-tree-sha1 = "45e428421666073eab6f2da5c9d310d99bb12f9b"
563+
uuid = "189a3867-3050-52da-a836-e630ba90ab69"
564+
version = "1.2.2"
565+
566+
[[deps.Requires]]
567+
deps = ["UUIDs"]
568+
git-tree-sha1 = "838a3a4188e2ded87a4f9f184b4b0d78a1e91cb7"
569+
uuid = "ae029012-a4dd-5104-9daa-d747884805df"
570+
version = "1.3.0"
571+
572+
[[deps.SHA]]
573+
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
574+
575+
[[deps.Serialization]]
576+
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
577+
578+
[[deps.SharedArrays]]
579+
deps = ["Distributed", "Mmap", "Random", "Serialization"]
580+
uuid = "1a1011a3-84de-559e-8e89-a11a2f7dc383"
581+
582+
[[deps.Sockets]]
583+
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
584+
585+
[[deps.SparseArrays]]
586+
deps = ["LinearAlgebra", "Random"]
587+
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
588+
589+
[[deps.Statistics]]
590+
deps = ["LinearAlgebra", "SparseArrays"]
591+
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
592+
593+
[[deps.TOML]]
594+
deps = ["Dates"]
595+
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
596+
597+
[[deps.Tar]]
598+
deps = ["ArgTools", "SHA"]
599+
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
600+
601+
[[deps.Test]]
602+
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
603+
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
604+
605+
[[deps.Tricks]]
606+
git-tree-sha1 = "6bac775f2d42a611cdfcd1fb217ee719630c4175"
607+
uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
608+
version = "0.1.6"
609+
610+
[[deps.UUIDs]]
611+
deps = ["Random", "SHA"]
612+
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
613+
614+
[[deps.Unicode]]
615+
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
616+
617+
[[deps.Zlib_jll]]
618+
deps = ["Libdl"]
619+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
620+
621+
[[deps.libblastrampoline_jll]]
622+
deps = ["Artifacts", "Libdl", "OpenBLAS_jll"]
623+
uuid = "8e850b90-86db-534c-a0d3-1478176c7d93"
624+
625+
[[deps.nghttp2_jll]]
626+
deps = ["Artifacts", "Libdl"]
627+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
628+
629+
[[deps.p7zip_jll]]
630+
deps = ["Artifacts", "Libdl"]
631+
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
632+
"""
633+
369634
# ╔═╡ Cell order:
370635
# ╟─fafae38e-e852-11ea-1208-732b4744e4c2
371636
# ╟─cdff6730-e785-11ea-2546-4969521b33a7
@@ -391,7 +656,6 @@ has area **$(area_sierpinski(n))**
391656
# ╟─c18dce7a-e7a7-11ea-0a1a-f944d46754e5
392657
# ╟─5e24d95c-e6ce-11ea-24be-bb19e1e14657
393658
# ╟─6b8883f6-e7b3-11ea-155e-6f62117e123b
394-
# ╠═851c03a4-e7a4-11ea-1652-d59b7a6599f0
395659
# ╠═d6ee91ea-e750-11ea-1260-31ebf3ec6a9b
396660
# ╠═5acd58e0-e856-11ea-2d3d-8329889fe16f
397661
# ╟─dbc4da6a-e7b4-11ea-3b70-6f2abfcab992
@@ -411,3 +675,5 @@ has area **$(area_sierpinski(n))**
411675
# ╟─a60a492a-e7bc-11ea-0f0b-75d81ce46a01
412676
# ╟─dfdeab34-e751-11ea-0f90-2fa9bbdccb1e
413677
# ╟─b923d394-e750-11ea-1971-595e09ab35b5
678+
# ╟─00000000-0000-0000-0000-000000000001
679+
# ╟─00000000-0000-0000-0000-000000000002

0 commit comments

Comments
 (0)