From e819356e7f8560978d934a5ea289164cb1c9a404 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 18 Jul 2023 12:53:19 +0200 Subject: [PATCH] update packages --- src/basic/Basic mathematics.jl | 2 +- src/basic/Basic.jl | 2 +- src/basic/Getting started.jl | 20 +- src/basic/Interactivity.jl | 2 +- src/basic/PlutoUI.jl.jl | 108 +++--- src/basic/Tower of Hanoi.jl | 2 +- src/plot/Plots.jl.jl | 261 +++++++------- src/web/JavaScript.jl | 602 ++++++++++++++++----------------- 8 files changed, 515 insertions(+), 484 deletions(-) diff --git a/src/basic/Basic mathematics.jl b/src/basic/Basic mathematics.jl index 43c9f27..c11053a 100644 --- a/src/basic/Basic mathematics.jl +++ b/src/basic/Basic mathematics.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" diff --git a/src/basic/Basic.jl b/src/basic/Basic.jl index e75030c..ef28529 100644 --- a/src/basic/Basic.jl +++ b/src/basic/Basic.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" diff --git a/src/basic/Getting started.jl b/src/basic/Getting started.jl index 7a127e4..c04d98e 100644 --- a/src/basic/Getting started.jl +++ b/src/basic/Getting started.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" @@ -70,17 +70,11 @@ neighbors = [cat, friend, "Smerfetka", "Latte"] # ╔═╡ 19ff8d36-9547-11ea-0e08-e5cdd8338673 md"Now, if you're like my grandma, you're feeding the entire neighborhood by yourself. Let's see how many cans of cat food you need to prepare." -# ╔═╡ a4a60262-9547-11ea-3a81-5bf7f9ee5d16 -consumption = confusing_function("🥫", neighbors) - # ╔═╡ 270ac49e-9549-11ea-3ffd-71ddaee9f134 md"But what does `confusing_function` do? If you ever need help, click on 📚 **Live docs** in the lower right, and then place your cursor on the code you need help with. If you don't see it, then your screen is too small! Maybe you need to zoom out?" -# ╔═╡ e11e1660-9549-11ea-22f6-8bb53dc045fe -md"Now we know to prepare $(length(consumption)) cans. Let's stock up!" - # ╔═╡ 745a4584-954a-11ea-028e-59011f268ec6 cans_in_stock = "🥫🥫🥫🥫" @@ -94,9 +88,6 @@ end # ╔═╡ eac62fea-954e-11ea-2768-39ce6f4059ab # cans_in_stock = "🥫🥫🥫🥫🥫" -# ╔═╡ f27f90c2-954f-11ea-3f93-17acb2ce4280 -md"We have $(length(cans_in_stock)) cans of cat food, and our cats need $(length(consumption)). Try adding another cat to the neighborhood to see what changes!" - # ╔═╡ 6c8e2108-9550-11ea-014d-235770ed4771 md"## Saving cats and notebooks Alright, we have a neighborhood full of well-fed cats. But oh no, here comes..." @@ -163,6 +154,15 @@ Repeats the `text` as many times as there are elements in `array`. """ confusing_function(text::String, array::Array) = repeat(text, length(array)) +# ╔═╡ a4a60262-9547-11ea-3a81-5bf7f9ee5d16 +consumption = confusing_function("🥫", neighbors) + +# ╔═╡ e11e1660-9549-11ea-22f6-8bb53dc045fe +md"Now we know to prepare $(length(consumption)) cans. Let's stock up!" + +# ╔═╡ f27f90c2-954f-11ea-3f93-17acb2ce4280 +md"We have $(length(cans_in_stock)) cans of cat food, and our cats need $(length(consumption)). Try adding another cat to the neighborhood to see what changes!" + # ╔═╡ 1deaaf36-9554-11ea-3dae-85851f73dbc6 md"**Have fun using Pluto!** diff --git a/src/basic/Interactivity.jl b/src/basic/Interactivity.jl index 599221c..5ffe19b 100644 --- a/src/basic/Interactivity.jl +++ b/src/basic/Interactivity.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" diff --git a/src/basic/PlutoUI.jl.jl b/src/basic/PlutoUI.jl.jl index 65ffbc9..167acef 100644 --- a/src/basic/PlutoUI.jl.jl +++ b/src/basic/PlutoUI.jl.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" @@ -23,6 +23,9 @@ macro bind(def, element) end end +# ╔═╡ 071d9ca5-9b42-4583-ad96-a48f93453a0e +using PlutoUI + # ╔═╡ bc532cd2-c75b-11ea-313f-8b5e771c9227 md"""# PlutoUI.jl @@ -38,15 +41,9 @@ md""" Simply import the `PlutoUI` package, and Pluto's built-in package manager takes care of the rest! """ -# ╔═╡ 071d9ca5-9b42-4583-ad96-a48f93453a0e -using PlutoUI - # ╔═╡ deadce6b-4abc-42b0-9997-07be8637ee94 TableOfContents() -# ╔═╡ fb6142f6-c765-11ea-29fd-7ff4e823c02b -space - # ╔═╡ fddb794c-c75c-11ea-1f55-eb9c178424cd md""" # Basics @@ -112,9 +109,6 @@ A `NumberField` can be used just like a `Slider`, it just looks different:" # ╔═╡ 314cb85a-c761-11ea-1cba-b73f84a52be8 @bind x_different NumberField(0:100, default=20) -# ╔═╡ 3c68b25c-c761-11ea-226a-4f46579a6732 -Resource(dog_url, :width => x * x_different) - # ╔═╡ 104b55ce-cc4f-11ea-1273-092a1717e399 @@ -305,9 +299,6 @@ md"The file picker is useful if you want to show off your notebook on a dataset The caveat is that large files might take a long time to get processed: everything needs to pass through the browser. If you are using large datasets, a better option is to use `Select` to let the reader pick a filename. You can then read the file using `Base.read(filename, type)`" -# ╔═╡ ebfc61b0-c765-11ea-1d66-cbf1dcdb8bdb -space - # ╔═╡ 3e5dd7d2-c760-11ea-1dca-6d8720b3558d md"# Extras" @@ -355,9 +346,6 @@ DownloadButton(poem, "poem.txt") # ╔═╡ 067cbcde-cc4c-11ea-3eed-972dc6d7bb3b DownloadButton([0x01, 0x02, 0x03], "secret_data.bin") -# ╔═╡ f69a5d5e-c765-11ea-3fa0-230c6c619730 -space - # ╔═╡ 7da30d97-b28a-4eb9-a2ef-fad599b549d1 md""" # High-level inputs @@ -401,15 +389,6 @@ import PlutoUI: combine # ╔═╡ a4837897-caae-447a-8db9-7775e7a4d0c8 -# ╔═╡ f5c421cc-dbdb-459a-9bb4-d648507a87d2 -@bind speeds wind_speed_input(["North", "East", "South", "West"]) - -# ╔═╡ a4eac824-ba87-473a-b39a-783c4de3f933 -speeds - -# ╔═╡ f9052ed8-84cc-4cca-abb2-9363aafc6040 -speeds.North - # ╔═╡ d278189e-6a5b-428a-8c81-ce3d206b042c function wind_speed_input(directions::Vector) @@ -430,6 +409,15 @@ function wind_speed_input(directions::Vector) end end +# ╔═╡ f5c421cc-dbdb-459a-9bb4-d648507a87d2 +@bind speeds wind_speed_input(["North", "East", "South", "West"]) + +# ╔═╡ a4eac824-ba87-473a-b39a-783c4de3f933 +speeds + +# ╔═╡ f9052ed8-84cc-4cca-abb2-9363aafc6040 +speeds.North + # ╔═╡ 4ca9c749-08ee-467f-af2c-9b2f13199d72 md""" Use the Live Docs to learn more about `combine` and to see additional examples. @@ -437,9 +425,6 @@ Use the Live Docs to learn more about `combine` and to see additional examples. > 🙋 `combine` is very useful in combination with [HypertextLiteral.jl](https://github.com/MechanicalRabbit/HypertextLiteral.jl), which you can learn using our JavaScript sample notebook. """ -# ╔═╡ 0b66c781-ecf2-445e-b2aa-82cb13371e46 -space - # ╔═╡ ad8e9b30-c75d-11ea-1fd0-0b53592135bf md"""# Loading resources @@ -474,6 +459,9 @@ md"Here is a _dog_: ![](https://fonsp.com/img/doggoSmall.jpg)" # ╔═╡ 6a7e7e54-c75e-11ea-2ea7-ed3da37e9e96 dog_url = "https://upload.wikimedia.org/wikipedia/commons/thumb/1/15/Welsh_Springer_Spaniel.jpg/640px-Welsh_Springer_Spaniel.jpg" +# ╔═╡ 3c68b25c-c761-11ea-226a-4f46579a6732 +Resource(dog_url, :width => x * x_different) + # ╔═╡ 9ac7921c-c75e-11ea-30f5-c35e6ee370cb t_rex_url = "https://upload.wikimedia.org/wikipedia/commons/transcoded/6/62/Meow.ogg/Meow.ogg.mp3" @@ -578,9 +566,6 @@ Addressing _local files_ is fragile: if someone else opens the notebook, or if y Putting images online might be a hassle, but once it works, it will work everywhere! The stateless nature of URLs means that the images will work regardless of how the notebook file is accessed, while keeping a minimal file format." -# ╔═╡ 35523932-cc4f-11ea-0908-2d51c57176b7 -space - # ╔═╡ a245dddc-cc59-11ea-3e1d-1763673ff706 md"# PlutoUI without Pluto @@ -607,22 +592,37 @@ and you run it without Pluto, then this statement simply assigns `x = 10`. # ╔═╡ 0da7bc30-cc64-11ea-1dde-2b7f2dd76036 md"`Pluto` and `PlutoUI` work independently of each other! In fact, _you_ could write a package with fun input elements, or add `@bind`able values to existing packages." -# ╔═╡ d163f434-cc5a-11ea-19e9-9319ba994efa -space - # ╔═╡ 512fe760-cc4c-11ea-1c5b-2b32da035aad md"# Appendix" # ╔═╡ 55bcdbf8-cc4c-11ea-1549-87c076a59ff4 space = html"


" +# ╔═╡ fb6142f6-c765-11ea-29fd-7ff4e823c02b +space + +# ╔═╡ ebfc61b0-c765-11ea-1d66-cbf1dcdb8bdb +space + +# ╔═╡ f69a5d5e-c765-11ea-3fa0-230c6c619730 +space + +# ╔═╡ 0b66c781-ecf2-445e-b2aa-82cb13371e46 +space + +# ╔═╡ 35523932-cc4f-11ea-0908-2d51c57176b7 +space + +# ╔═╡ d163f434-cc5a-11ea-19e9-9319ba994efa +space + # ╔═╡ 00000000-0000-0000-0000-000000000001 PLUTO_PROJECT_TOML_CONTENTS = """ [deps] PlutoUI = "7f904dfe-b85e-4ff6-b463-dae2292396a8" [compat] -PlutoUI = "~0.7.50" +PlutoUI = "~0.7.51" """ # ╔═╡ 00000000-0000-0000-0000-000000000002 @@ -631,9 +631,9 @@ PLUTO_MANIFEST_TOML_CONTENTS = """ [[AbstractPlutoDingetjes]] deps = ["Pkg"] -git-tree-sha1 = "8eaf9f1b4921132a4cff3f36a1d9ba923b14a481" +git-tree-sha1 = "91bd53c39b9cbfb5ef4b015e8b582d344532bd0a" uuid = "6e696c72-6542-2067-7265-42206c756150" -version = "1.1.4" +version = "1.2.0" [[ArgTools]] uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f" @@ -678,9 +678,9 @@ version = "0.9.4" [[IOCapture]] deps = ["Logging", "Random"] -git-tree-sha1 = "f7be53659ab06ddc986428d3a9dcc95f6fa6705a" +git-tree-sha1 = "d75853a0bdbfb1ac815478bacd89cd27b550ace6" uuid = "b5f81e59-6552-4d32-b1f0-c071b021bf89" -version = "0.2.2" +version = "0.2.3" [[InteractiveUtils]] deps = ["Markdown"] @@ -688,9 +688,9 @@ uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240" [[JSON]] deps = ["Dates", "Mmap", "Parsers", "Unicode"] -git-tree-sha1 = "3c837543ddb02250ef42f4738347454f95079d4e" +git-tree-sha1 = "31e996f0a15c7b280ba9f76636b3ff9e2ae58c9a" uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" -version = "0.21.3" +version = "0.21.4" [[LibCURL]] deps = ["LibCURL_jll", "MozillaCACerts_jll"] @@ -741,10 +741,10 @@ uuid = "14a3606d-f60d-562e-9121-12d972cd8159" uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908" [[Parsers]] -deps = ["Dates", "SnoopPrecompile"] -git-tree-sha1 = "478ac6c952fddd4399e71d4779797c538d0ff2bf" +deps = ["Dates", "PrecompileTools", "UUIDs"] +git-tree-sha1 = "4b2e829ee66d4218e0cef22c0a64ee37cf258c29" uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" -version = "2.5.8" +version = "2.7.1" [[Pkg]] deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"] @@ -752,15 +752,21 @@ uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" [[PlutoUI]] deps = ["AbstractPlutoDingetjes", "Base64", "ColorTypes", "Dates", "FixedPointNumbers", "Hyperscript", "HypertextLiteral", "IOCapture", "InteractiveUtils", "JSON", "Logging", "MIMEs", "Markdown", "Random", "Reexport", "URIs", "UUIDs"] -git-tree-sha1 = "5bb5129fdd62a2bbbe17c2756932259acf467386" +git-tree-sha1 = "b478a748be27bd2f2c73a7690da219d0844db305" uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8" -version = "0.7.50" +version = "0.7.51" + +[[PrecompileTools]] +deps = ["Preferences"] +git-tree-sha1 = "9673d39decc5feece56ef3940e5dafba15ba0f81" +uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a" +version = "1.1.2" [[Preferences]] deps = ["TOML"] -git-tree-sha1 = "47e5f437cc0e7ef2ce8406ce1e7e24d44915f88d" +git-tree-sha1 = "7eb1686b4f04b82f96ed7a4ea5890a4f0c7a09f1" uuid = "21216c6a-2e73-6563-6e65-726566657250" -version = "1.3.0" +version = "1.4.0" [[Printf]] deps = ["Unicode"] @@ -785,12 +791,6 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" [[Serialization]] uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" -[[SnoopPrecompile]] -deps = ["Preferences"] -git-tree-sha1 = "e760a70afdcd461cf01a575947738d359234665c" -uuid = "66db9d55-30c0-4569-8b51-7e840670fc0c" -version = "1.0.3" - [[Sockets]] uuid = "6462fe0b-24de-5631-8697-dd941f90decc" diff --git a/src/basic/Tower of Hanoi.jl b/src/basic/Tower of Hanoi.jl index fb7a60c..8a5fc05 100644 --- a/src/basic/Tower of Hanoi.jl +++ b/src/basic/Tower of Hanoi.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" diff --git a/src/plot/Plots.jl.jl b/src/plot/Plots.jl.jl index 4005b52..599f38e 100644 --- a/src/plot/Plots.jl.jl +++ b/src/plot/Plots.jl.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" @@ -12,6 +12,9 @@ using Markdown using InteractiveUtils +# ╔═╡ 5e611449-c239-4547-9d13-5db33a081e58 +using Plots + # ╔═╡ 7b93882c-9ad8-11ea-0288-0941e163f9d5 md""" # Plotting in Pluto @@ -23,9 +26,6 @@ I wrote this notebook so you can understand it even if you have never used `Plot Let's start by importing the `Plots` package. _(Pluto's package manager automatically takes care of installing and tracking dependencies!)_ """ -# ╔═╡ 5e611449-c239-4547-9d13-5db33a081e58 -using Plots - # ╔═╡ e5abaf40-f105-11ea-1494-2da858d7db5b md"We need to choose a _backend_ for Plots.jl. We choose `plotly` because it works with no additional dependencies. You can [read more about backends](http://docs.juliaplots.org/latest/backends/#backends) in Plots.jl - it's one of its coolest features!" @@ -224,7 +224,7 @@ PLUTO_PROJECT_TOML_CONTENTS = """ Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" [compat] -Plots = "~1.38.9" +Plots = "~1.38.16" """ # ╔═╡ 00000000-0000-0000-0000-000000000002 @@ -259,27 +259,27 @@ version = "1.16.1+1" [[ChainRulesCore]] deps = ["Compat", "LinearAlgebra", "SparseArrays"] -git-tree-sha1 = "c6d890a52d2c4d55d326439580c3b8d0875a77d9" +git-tree-sha1 = "e30f2f4e20f7f186dc36529910beaedc60cfa644" uuid = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4" -version = "1.15.7" +version = "1.16.0" [[ChangesOfVariables]] -deps = ["ChainRulesCore", "LinearAlgebra", "Test"] -git-tree-sha1 = "485193efd2176b88e6622a39a246f8c5b600e74e" +deps = ["InverseFunctions", "LinearAlgebra", "Test"] +git-tree-sha1 = "2fba81a302a7be671aefe194f0525ef231104e7f" uuid = "9e997f8a-9a97-42d5-a9f1-ce6bfc15e2c0" -version = "0.1.6" +version = "0.1.8" [[CodecZlib]] deps = ["TranscodingStreams", "Zlib_jll"] -git-tree-sha1 = "9c209fb7536406834aa938fb149964b985de6c83" +git-tree-sha1 = "02aa26a4cf76381be7f66e020a3eddeb27b0a092" uuid = "944b1d66-785c-5afd-91f1-9de20f533193" -version = "0.7.1" +version = "0.7.2" [[ColorSchemes]] -deps = ["ColorTypes", "ColorVectorSpace", "Colors", "FixedPointNumbers", "Random", "SnoopPrecompile"] -git-tree-sha1 = "aa3edc8f8dea6cbfa176ee12f7c2fc82f0608ed3" +deps = ["ColorTypes", "ColorVectorSpace", "Colors", "FixedPointNumbers", "PrecompileTools", "Random"] +git-tree-sha1 = "be6ab11021cd29f0344d5c4357b163af05a48cba" uuid = "35d6a980-a343-548e-a6ea-1d62b119f2f4" -version = "3.20.0" +version = "3.21.0" [[ColorTypes]] deps = ["FixedPointNumbers", "Random"] @@ -301,29 +301,41 @@ version = "0.12.10" [[Compat]] deps = ["Dates", "LinearAlgebra", "UUIDs"] -git-tree-sha1 = "7a60c856b9fa189eb34f5f8a6f6b5529b7942957" +git-tree-sha1 = "4e88377ae7ebeaf29a047aa1ee40826e0b708a5d" uuid = "34da2185-b29b-5c13-b0c7-acf172513d20" -version = "4.6.1" +version = "4.7.0" [[CompilerSupportLibraries_jll]] deps = ["Artifacts", "Libdl"] uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae" +[[ConcurrentUtilities]] +deps = ["Serialization", "Sockets"] +git-tree-sha1 = "5372dbbf8f0bdb8c700db5367132925c0771ef7e" +uuid = "f0e56b4a-5159-44fe-b623-3e5288b988bb" +version = "2.2.1" + +[[ConstructionBase]] +deps = ["LinearAlgebra"] +git-tree-sha1 = "fe2838a593b5f776e1597e086dcd47560d94e816" +uuid = "187b0558-2788-49d3-abe0-74a17ed4e7c9" +version = "1.5.3" + [[Contour]] git-tree-sha1 = "d05d9e7b7aedff4e5b51a029dced05cfb6125781" uuid = "d38c429a-6771-53c6-b99e-75d170b6e991" version = "0.6.2" [[DataAPI]] -git-tree-sha1 = "e8119c1a33d267e16108be441a287a6981ba1630" +git-tree-sha1 = "8da84edb865b0b5b0100c0666a9bc9a0b71c553c" uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a" -version = "1.14.0" +version = "1.15.0" [[DataStructures]] deps = ["Compat", "InteractiveUtils", "OrderedCollections"] -git-tree-sha1 = "d1fff3a548102f48987a52a2e0d114fa97d730f0" +git-tree-sha1 = "cf25ccb972fec4e4817764d01c82386ae94f77b4" uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" -version = "0.18.13" +version = "0.18.14" [[Dates]] deps = ["Printf"] @@ -343,11 +355,17 @@ version = "0.9.3" deps = ["ArgTools", "LibCURL", "NetworkOptions"] uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6" +[[ExceptionUnwrapping]] +deps = ["Test"] +git-tree-sha1 = "e90caa41f5a86296e014e148ee061bd6c3edec96" +uuid = "460bff9d-24e4-43bc-9d9f-a8973cb893f4" +version = "0.1.9" + [[Expat_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "bad72f730e9e91c08d9427d5e8db95478a3c323d" +deps = ["Artifacts", "JLLWrappers", "Libdl"] +git-tree-sha1 = "4558ab818dcceaab612d1bb8c19cee87eda2b83c" uuid = "2e619515-83b5-522b-bb60-26c02a35a201" -version = "2.4.8+0" +version = "2.5.0+0" [[FFMPEG]] deps = ["FFMPEG_jll"] @@ -380,10 +398,10 @@ uuid = "59287772-0a20-5a39-b81b-1366585eb4c0" version = "0.4.2" [[FreeType2_jll]] -deps = ["Artifacts", "Bzip2_jll", "JLLWrappers", "Libdl", "Pkg", "Zlib_jll"] -git-tree-sha1 = "87eb71354d8ec1a96d4a7636bd57a7347dde3ef9" +deps = ["Artifacts", "Bzip2_jll", "JLLWrappers", "Libdl", "Zlib_jll"] +git-tree-sha1 = "d8db6a5a2fe1381c1ea4ef2cab7c69c2de7f9ea0" uuid = "d7e528f0-a631-5988-bf34-fe36492bcfd7" -version = "2.10.4+0" +version = "2.13.1+0" [[FriBidi_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] @@ -399,15 +417,15 @@ version = "3.3.8+0" [[GR]] deps = ["Artifacts", "Base64", "DelimitedFiles", "Downloads", "GR_jll", "HTTP", "JSON", "Libdl", "LinearAlgebra", "Pkg", "Preferences", "Printf", "Random", "Serialization", "Sockets", "TOML", "Tar", "Test", "UUIDs", "p7zip_jll"] -git-tree-sha1 = "0635807d28a496bb60bc15f465da0107fb29649c" +git-tree-sha1 = "8e2d86e06ceb4580110d9e716be26658effc5bfd" uuid = "28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71" -version = "0.72.0" +version = "0.72.8" [[GR_jll]] deps = ["Artifacts", "Bzip2_jll", "Cairo_jll", "FFMPEG_jll", "Fontconfig_jll", "GLFW_jll", "JLLWrappers", "JpegTurbo_jll", "Libdl", "Libtiff_jll", "Pixman_jll", "Qt5Base_jll", "Zlib_jll", "libpng_jll"] -git-tree-sha1 = "99e248f643b052a77d2766fe1a16fb32b661afd4" +git-tree-sha1 = "da121cbdc95b065da07fbb93638367737969693f" uuid = "d2c73de3-f751-5644-a686-071e5b155ba9" -version = "0.72.0+0" +version = "0.72.8+0" [[Gettext_jll]] deps = ["Artifacts", "CompilerSupportLibraries_jll", "JLLWrappers", "Libdl", "Libiconv_jll", "Pkg", "XML2_jll"] @@ -433,10 +451,10 @@ uuid = "42e2da0e-8278-4e71-bc24-59509adca0fe" version = "1.0.2" [[HTTP]] -deps = ["Base64", "CodecZlib", "Dates", "IniFile", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"] -git-tree-sha1 = "37e4657cd56b11abe3d10cd4a1ec5fbdb4180263" +deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"] +git-tree-sha1 = "cb56ccdd481c0dd7f975ad2b3b62d9eda088f7e2" uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3" -version = "1.7.4" +version = "1.9.14" [[HarfBuzz_jll]] deps = ["Artifacts", "Cairo_jll", "Fontconfig_jll", "FreeType2_jll", "Glib_jll", "Graphite2_jll", "JLLWrappers", "Libdl", "Libffi_jll", "Pkg"] @@ -444,20 +462,15 @@ git-tree-sha1 = "129acf094d168394e80ee1dc4bc06ec835e510a3" uuid = "2e76f6c2-a576-52d4-95c1-20adfe4de566" version = "2.8.1+1" -[[IniFile]] -git-tree-sha1 = "f550e6e32074c939295eb5ea6de31849ac2c9625" -uuid = "83e8ac13-25f8-5344-8a64-a9f2b223428f" -version = "0.5.1" - [[InteractiveUtils]] deps = ["Markdown"] uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240" [[InverseFunctions]] deps = ["Test"] -git-tree-sha1 = "49510dfcb407e572524ba94aeae2fced1f3feb0f" +git-tree-sha1 = "eabe3125edba5c9c10b60a160b1779a000dc8b29" uuid = "3587e190-3f89-42d0-90ee-14403ec27112" -version = "0.1.8" +version = "0.1.11" [[IrrationalConstants]] git-tree-sha1 = "630b497eafcc20001bba38a4651b327dcfc491d2" @@ -478,9 +491,9 @@ version = "1.4.1" [[JSON]] deps = ["Dates", "Mmap", "Parsers", "Unicode"] -git-tree-sha1 = "3c837543ddb02250ef42f4738347454f95079d4e" +git-tree-sha1 = "31e996f0a15c7b280ba9f76636b3ff9e2ae58c9a" uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" -version = "0.21.3" +version = "0.21.4" [[JpegTurbo_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl"] @@ -500,6 +513,12 @@ git-tree-sha1 = "bf36f528eec6634efc60d7ec062008f171071434" uuid = "88015f11-f218-50d7-93a8-a6af411a945d" version = "3.0.0+1" +[[LLVMOpenMP_jll]] +deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] +git-tree-sha1 = "f689897ccbe049adb19a065c495e75f372ecd42b" +uuid = "1d63c593-3942-5779-bab2-d838dc0a180e" +version = "15.0.4+0" + [[LZO_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] git-tree-sha1 = "e5b909bcf985c5e2605737d2ce278ed791b89be6" @@ -513,9 +532,9 @@ version = "1.3.0" [[Latexify]] deps = ["Formatting", "InteractiveUtils", "LaTeXStrings", "MacroTools", "Markdown", "OrderedCollections", "Printf", "Requires"] -git-tree-sha1 = "2422f47b34d4b127720a18f86fa7b1aa2e141f29" +git-tree-sha1 = "f428ae552340899a935973270b8d98e5a31c49fe" uuid = "23fbe1c1-3f47-55db-b15f-69d7ec21a316" -version = "0.15.18" +version = "0.16.1" [[LibCURL]] deps = ["LibCURL_jll", "MozillaCACerts_jll"] @@ -590,9 +609,9 @@ uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" [[LogExpFunctions]] deps = ["ChainRulesCore", "ChangesOfVariables", "DocStringExtensions", "InverseFunctions", "IrrationalConstants", "LinearAlgebra"] -git-tree-sha1 = "0a1b7c2863e44523180fdb3146534e265a91870b" +git-tree-sha1 = "c3ce8e7420b3a6e071e0fe4745f5d4300e37b13f" uuid = "2ab3a3ac-af41-5b50-aa03-7779005ae688" -version = "0.3.23" +version = "0.3.24" [[Logging]] uuid = "56ddb016-857b-54e1-b83d-db4d58db5568" @@ -661,15 +680,15 @@ uuid = "05823500-19ac-5b8b-9628-191a04bc5112" [[OpenSSL]] deps = ["BitFlags", "Dates", "MozillaCACerts_jll", "OpenSSL_jll", "Sockets"] -git-tree-sha1 = "6503b77492fd7fcb9379bf73cd31035670e3c509" +git-tree-sha1 = "51901a49222b09e3743c65b8847687ae5fc78eb2" uuid = "4d8831e6-92b7-49fb-bdf8-b643e874388c" -version = "1.3.3" +version = "1.4.1" [[OpenSSL_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "9ff31d101d987eb9d66bd8b176ac7c277beccd09" +deps = ["Artifacts", "JLLWrappers", "Libdl"] +git-tree-sha1 = "1aa4b74f80b01c6bc2b89992b861b5f210e665b5" uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95" -version = "1.1.20+0" +version = "1.1.21+0" [[OpenSpecFun_jll]] deps = ["Artifacts", "CompilerSupportLibraries_jll", "JLLWrappers", "Libdl", "Pkg"] @@ -693,10 +712,10 @@ deps = ["Artifacts", "Libdl"] uuid = "efcefdf7-47ab-520b-bdef-62a2eaa19f15" [[Parsers]] -deps = ["Dates", "SnoopPrecompile"] -git-tree-sha1 = "478ac6c952fddd4399e71d4779797c538d0ff2bf" +deps = ["Dates", "PrecompileTools", "UUIDs"] +git-tree-sha1 = "4b2e829ee66d4218e0cef22c0a64ee37cf258c29" uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" -version = "2.5.8" +version = "2.7.1" [[Pipe]] git-tree-sha1 = "6842804e7867b115ca9de748a0cf6b364523c16d" @@ -704,10 +723,10 @@ uuid = "b98c9c47-44ae-5843-9183-064241ee97a0" version = "1.3.0" [[Pixman_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "b4f5d02549a10e20780a24fce72bea96b6329e29" +deps = ["Artifacts", "CompilerSupportLibraries_jll", "JLLWrappers", "LLVMOpenMP_jll", "Libdl"] +git-tree-sha1 = "64779bc4c9784fee475689a1752ef4d5747c5e87" uuid = "30392449-352a-5448-841d-b1acce4e97dc" -version = "0.40.1+0" +version = "0.42.2+0" [[Pkg]] deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"] @@ -720,22 +739,28 @@ uuid = "ccf2f8ad-2431-5c83-bf29-c5338b663b6a" version = "3.1.0" [[PlotUtils]] -deps = ["ColorSchemes", "Colors", "Dates", "Printf", "Random", "Reexport", "SnoopPrecompile", "Statistics"] -git-tree-sha1 = "c95373e73290cf50a8a22c3375e4625ded5c5280" +deps = ["ColorSchemes", "Colors", "Dates", "PrecompileTools", "Printf", "Random", "Reexport", "Statistics"] +git-tree-sha1 = "f92e1315dadf8c46561fb9396e525f7200cdc227" uuid = "995b91a9-d308-5afd-9ec6-746e21dbc043" -version = "1.3.4" +version = "1.3.5" [[Plots]] -deps = ["Base64", "Contour", "Dates", "Downloads", "FFMPEG", "FixedPointNumbers", "GR", "JLFzf", "JSON", "LaTeXStrings", "Latexify", "LinearAlgebra", "Measures", "NaNMath", "Pkg", "PlotThemes", "PlotUtils", "Preferences", "Printf", "REPL", "Random", "RecipesBase", "RecipesPipeline", "Reexport", "RelocatableFolders", "Requires", "Scratch", "Showoff", "SnoopPrecompile", "SparseArrays", "Statistics", "StatsBase", "UUIDs", "UnicodeFun", "Unzip"] -git-tree-sha1 = "186d38ea29d5c4f238b2d9fe6e1653264101944b" +deps = ["Base64", "Contour", "Dates", "Downloads", "FFMPEG", "FixedPointNumbers", "GR", "JLFzf", "JSON", "LaTeXStrings", "Latexify", "LinearAlgebra", "Measures", "NaNMath", "Pkg", "PlotThemes", "PlotUtils", "PrecompileTools", "Preferences", "Printf", "REPL", "Random", "RecipesBase", "RecipesPipeline", "Reexport", "RelocatableFolders", "Requires", "Scratch", "Showoff", "SparseArrays", "Statistics", "StatsBase", "UUIDs", "UnicodeFun", "UnitfulLatexify", "Unzip"] +git-tree-sha1 = "75ca67b2c6512ad2d0c767a7cfc55e75075f8bbc" uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" -version = "1.38.9" +version = "1.38.16" + +[[PrecompileTools]] +deps = ["Preferences"] +git-tree-sha1 = "9673d39decc5feece56ef3940e5dafba15ba0f81" +uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a" +version = "1.1.2" [[Preferences]] deps = ["TOML"] -git-tree-sha1 = "47e5f437cc0e7ef2ce8406ce1e7e24d44915f88d" +git-tree-sha1 = "7eb1686b4f04b82f96ed7a4ea5890a4f0c7a09f1" uuid = "21216c6a-2e73-6563-6e65-726566657250" -version = "1.3.0" +version = "1.4.0" [[Printf]] deps = ["Unicode"] @@ -756,16 +781,16 @@ deps = ["Serialization"] uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" [[RecipesBase]] -deps = ["SnoopPrecompile"] -git-tree-sha1 = "261dddd3b862bd2c940cf6ca4d1c8fe593e457c8" +deps = ["PrecompileTools"] +git-tree-sha1 = "5c3d09cc4f31f5fc6af001c250bf1278733100ff" uuid = "3cdcf5f2-1ef4-517c-9805-6587b60abb01" -version = "1.3.3" +version = "1.3.4" [[RecipesPipeline]] -deps = ["Dates", "NaNMath", "PlotUtils", "RecipesBase", "SnoopPrecompile"] -git-tree-sha1 = "e974477be88cb5e3040009f3767611bc6357846f" +deps = ["Dates", "NaNMath", "PlotUtils", "PrecompileTools", "RecipesBase"] +git-tree-sha1 = "45cf9fd0ca5839d06ef333c8201714e888486342" uuid = "01d81517-befc-4cb6-b9ec-a95719d0359c" -version = "0.6.11" +version = "0.6.12" [[Reexport]] git-tree-sha1 = "45e428421666073eab6f2da5c9d310d99bb12f9b" @@ -807,20 +832,14 @@ git-tree-sha1 = "874e8867b33a00e784c8a7e4b60afe9e037b74e1" uuid = "777ac1f9-54b0-4bf8-805c-2214025038e7" version = "1.1.0" -[[SnoopPrecompile]] -deps = ["Preferences"] -git-tree-sha1 = "e760a70afdcd461cf01a575947738d359234665c" -uuid = "66db9d55-30c0-4569-8b51-7e840670fc0c" -version = "1.0.3" - [[Sockets]] uuid = "6462fe0b-24de-5631-8697-dd941f90decc" [[SortingAlgorithms]] deps = ["DataStructures"] -git-tree-sha1 = "a4ada03f999bd01b3a25dcaa30b2d929fe537e00" +git-tree-sha1 = "c60ec5c62180f27efea3ba2908480f8055e17cee" uuid = "a2af1166-a08f-5f64-846c-94a0d3cef48c" -version = "1.1.0" +version = "1.1.1" [[SparseArrays]] deps = ["LinearAlgebra", "Random"] @@ -828,9 +847,9 @@ uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" [[SpecialFunctions]] deps = ["ChainRulesCore", "IrrationalConstants", "LogExpFunctions", "OpenLibm_jll", "OpenSpecFun_jll"] -git-tree-sha1 = "ef28127915f4229c971eb43f3fc075dd3fe91880" +git-tree-sha1 = "7beb031cf8145577fbccacd94b8a8f4ce78428d3" uuid = "276daf66-3868-5448-9aa4-cd146d93841b" -version = "2.2.0" +version = "2.3.0" [[Statistics]] deps = ["LinearAlgebra", "SparseArrays"] @@ -844,9 +863,9 @@ version = "1.6.0" [[StatsBase]] deps = ["DataAPI", "DataStructures", "LinearAlgebra", "LogExpFunctions", "Missings", "Printf", "Random", "SortingAlgorithms", "SparseArrays", "Statistics", "StatsAPI"] -git-tree-sha1 = "d1bf48bfcc554a3761a133fe3a9bb01488e06916" +git-tree-sha1 = "75ebe04c5bed70b91614d684259b661c9e6274a4" uuid = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" -version = "0.33.21" +version = "0.34.0" [[TOML]] deps = ["Dates"] @@ -868,9 +887,9 @@ uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [[TranscodingStreams]] deps = ["Random", "Test"] -git-tree-sha1 = "94f38103c984f89cf77c402f2a68dbd870f8165f" +git-tree-sha1 = "9a6ae7ed916312b41236fcef7e0af564ef934769" uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa" -version = "0.9.11" +version = "0.9.13" [[URIs]] git-tree-sha1 = "074f993b0ca030848b897beff716d93aca60f06a" @@ -890,6 +909,18 @@ git-tree-sha1 = "53915e50200959667e78a92a418594b428dffddf" uuid = "1cfade01-22cf-5700-b092-accc4b62d6e1" version = "0.4.1" +[[Unitful]] +deps = ["ConstructionBase", "Dates", "InverseFunctions", "LinearAlgebra", "Random"] +git-tree-sha1 = "c4d2a349259c8eba66a00a540d550f122a3ab228" +uuid = "1986cc42-f94f-5a68-af5c-568840ba703d" +version = "1.15.0" + +[[UnitfulLatexify]] +deps = ["LaTeXStrings", "Latexify", "Unitful"] +git-tree-sha1 = "e2d817cc500e960fdbafcf988ac8436ba3208bfd" +uuid = "45397f5d-5981-4c77-b2b3-fc36d6e9b728" +version = "1.6.3" + [[Unzip]] git-tree-sha1 = "34db80951901073501137bdbc3d5a8e7bbd06670" uuid = "41fe7b60-77ed-43a1-b4f0-825fd5a5650d" @@ -920,16 +951,16 @@ uuid = "aed1982a-8fda-507f-9586-7b0439959a61" version = "1.1.34+0" [[Xorg_libX11_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_libxcb_jll", "Xorg_xtrans_jll"] -git-tree-sha1 = "5be649d550f3f4b95308bf0183b82e2582876527" +deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libxcb_jll", "Xorg_xtrans_jll"] +git-tree-sha1 = "afead5aba5aa507ad5a3bf01f58f82c8d1403495" uuid = "4f6342f7-b3d2-589e-9d20-edeb45f2b2bc" -version = "1.6.9+4" +version = "1.8.6+0" [[Xorg_libXau_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "4e490d5c960c314f33885790ed410ff3a94ce67e" +deps = ["Artifacts", "JLLWrappers", "Libdl"] +git-tree-sha1 = "6035850dcc70518ca32f012e46015b9beeda49d8" uuid = "0c0b7dd1-d40b-584c-a123-a41640f87eec" -version = "1.0.9+4" +version = "1.0.11+0" [[Xorg_libXcursor_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_libXfixes_jll", "Xorg_libXrender_jll"] @@ -938,10 +969,10 @@ uuid = "935fb764-8cf2-53bf-bb30-45bb1f8bf724" version = "1.2.0+4" [[Xorg_libXdmcp_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "4fe47bd2247248125c428978740e18a681372dd4" +deps = ["Artifacts", "JLLWrappers", "Libdl"] +git-tree-sha1 = "34d526d318358a859d7de23da945578e8e8727b7" uuid = "a3789734-cfe1-5b06-b2d0-1dd0d9d62d05" -version = "1.1.3+4" +version = "1.1.4+0" [[Xorg_libXext_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_libX11_jll"] @@ -980,22 +1011,22 @@ uuid = "ea2f1a96-1ddc-540d-b46f-429655e07cfa" version = "0.9.10+4" [[Xorg_libpthread_stubs_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "6783737e45d3c59a4a4c4091f5f88cdcf0908cbb" +deps = ["Artifacts", "JLLWrappers", "Libdl"] +git-tree-sha1 = "8fdda4c692503d44d04a0603d9ac0982054635f9" uuid = "14d82f49-176c-5ed1-bb49-ad3f5cbd8c74" -version = "0.1.0+3" +version = "0.1.1+0" [[Xorg_libxcb_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "XSLT_jll", "Xorg_libXau_jll", "Xorg_libXdmcp_jll", "Xorg_libpthread_stubs_jll"] -git-tree-sha1 = "daf17f441228e7a3833846cd048892861cff16d6" +deps = ["Artifacts", "JLLWrappers", "Libdl", "XSLT_jll", "Xorg_libXau_jll", "Xorg_libXdmcp_jll", "Xorg_libpthread_stubs_jll"] +git-tree-sha1 = "b4bfde5d5b652e22b9c790ad00af08b6d042b97d" uuid = "c7cfdc94-dc32-55de-ac96-5a1b8d977c5b" -version = "1.13.0+3" +version = "1.15.0+0" [[Xorg_libxkbfile_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_libX11_jll"] -git-tree-sha1 = "926af861744212db0eb001d9e40b5d16292080b2" +deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libX11_jll"] +git-tree-sha1 = "730eeca102434283c50ccf7d1ecdadf521a765a4" uuid = "cc61e674-0454-545c-8b26-ed2c68acab7a" -version = "1.1.0+4" +version = "1.1.2+0" [[Xorg_xcb_util_image_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_xcb_util_jll"] @@ -1028,22 +1059,22 @@ uuid = "c22f9ab0-d5fe-5066-847c-f4bb1cd4e361" version = "0.4.1+1" [[Xorg_xkbcomp_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_libxkbfile_jll"] -git-tree-sha1 = "4bcbf660f6c2e714f87e960a171b119d06ee163b" +deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libxkbfile_jll"] +git-tree-sha1 = "330f955bc41bb8f5270a369c473fc4a5a4e4d3cb" uuid = "35661453-b289-5fab-8a00-3d9160c6a3a4" -version = "1.4.2+4" +version = "1.4.6+0" [[Xorg_xkeyboard_config_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_xkbcomp_jll"] -git-tree-sha1 = "5c8424f8a67c3f2209646d4425f3d415fee5931d" +deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_xkbcomp_jll"] +git-tree-sha1 = "691634e5453ad362044e2ad653e79f3ee3bb98c3" uuid = "33bec58e-1273-512f-9401-5d533626f822" -version = "2.27.0+4" +version = "2.39.0+0" [[Xorg_xtrans_jll]] -deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] -git-tree-sha1 = "79c31e7844f6ecf779705fbc12146eb190b7d845" +deps = ["Artifacts", "JLLWrappers", "Libdl"] +git-tree-sha1 = "e92a1a012a10506618f10b7047e478403a046c77" uuid = "c5fb5394-a638-5e4d-96e5-b29de1b5cf10" -version = "1.4.0+3" +version = "1.5.0+0" [[Zlib_jll]] deps = ["Libdl"] @@ -1051,9 +1082,9 @@ uuid = "83775a58-1f1d-513f-b197-d71354ab007a" [[Zstd_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl"] -git-tree-sha1 = "c6edfe154ad7b313c01aceca188c05c835c67360" +git-tree-sha1 = "49ce682769cd5de6c72dcf1b94ed7790cd08974c" uuid = "3161d3a3-bdf6-5164-811a-617609db77b4" -version = "1.5.4+0" +version = "1.5.5+0" [[fzf_jll]] deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"] diff --git a/src/web/JavaScript.jl b/src/web/JavaScript.jl index 8b7526d..82c6297 100644 --- a/src/web/JavaScript.jl +++ b/src/web/JavaScript.jl @@ -1,5 +1,5 @@ ### A Pluto.jl notebook ### -# v0.19.18 +# v0.19.27 #> [frontmatter] #> author_url = "https://github.com/JuliaPluto" @@ -22,6 +22,9 @@ macro bind(def, element) end end +# ╔═╡ 571613a1-6b4b-496d-9a68-aac3f6a83a4b +using PlutoUI, HypertextLiteral + # ╔═╡ 97914842-76d2-11eb-0c48-a7eedca870fb md""" # Using _JavaScript_ inside Pluto @@ -31,9 +34,6 @@ You have already seen that Pluto is designed to be _interactive_. You can make f _However_, if you want to take your interactive document one step further, then Pluto offers a great framework for **combining Julia with HTML, CSS and _JavaScript_**. """ -# ╔═╡ 571613a1-6b4b-496d-9a68-aac3f6a83a4b -using PlutoUI, HypertextLiteral - # ╔═╡ 168e13f7-2ff2-4207-be56-e57755041d36 md""" ## Prerequisites @@ -78,44 +78,6 @@ This document assumes that you have used HTML, CSS and JavaScript before in anot """) -# ╔═╡ 93abe0dc-f041-475f-9ef7-d8ee4408414b -details(md""" - ```htmlmixed - -
-

- Learning HTML and CSS -

-

- It is easy to learn HTML and CSS because they are not 'programming languages' like Julia and JavaScript, they are markup languages: there are no loops, functions or arrays, you only declare how your document is structured (HTML) and what that structure looks like on a 2D color display (CSS). -

-

- As an example, this is what this cell looks like, written in HTML and CSS: -

-
- - - - ``` - """, "Show with syntax highlighting") - # ╔═╡ ea39c63f-7466-4015-a66c-08bd9c716343 md""" > My personal favourite resource for learning HTML and CSS is the [Mozilla Developer Network (MDN)](https://developer.mozilla.org/en-US/docs/Web/CSS). @@ -235,6 +197,13 @@ md"""

Hello $(who)!

""") +# ╔═╡ e7d3db79-8253-4cbd-9832-5afb7dff0abf +cool_features = [ + md"Interpolate any **HTML-showable object**, such as plots and images, or another `@htl` literal." + md"Interpolated lists are expanded _(like in this cell!)_." + "Easy syntax for CSS" + ] + # ╔═╡ bf592202-a9a4-4e9b-8433-fed55e3aa3bc @htl("""

It has a bunch of very cool features! Including:

@@ -246,13 +215,6 @@ md""" ]) """) -# ╔═╡ e7d3db79-8253-4cbd-9832-5afb7dff0abf -cool_features = [ - md"Interpolate any **HTML-showable object**, such as plots and images, or another `@htl` literal." - md"Interpolated lists are expanded _(like in this cell!)_." - "Easy syntax for CSS" - ] - # ╔═╡ 5ac5b984-8c02-4b8d-a342-d0f05f7909ec md""" #### Why not just `HTML(...)`? @@ -299,27 +261,14 @@ simple_data = (msg="Hello! ", times=3) """) -# ╔═╡ d12b98df-8c3f-4620-ba3c-2f3dadac521b -details(md""" - ```htmlmixed - - ``` - """, "Show with syntax highlighting") - # ╔═╡ 965f3660-6ec4-4a86-a2a2-c167dbe9315f md""" **Let's look at a more exciting example:** """ +# ╔═╡ 00d97588-d591-4dad-9f7d-223c237deefd +@bind fantastic_x Slider(0:400) + # ╔═╡ 01ce31a9-6856-4ee7-8bce-7ce635167457 my_data = [ (name="Cool", coordinate=[100, 100]), @@ -327,9 +276,6 @@ my_data = [ (name="Fantastic!", coordinate=[fantastic_x, 150]), ] -# ╔═╡ 00d97588-d591-4dad-9f7d-223c237deefd -@bind fantastic_x Slider(0:400) - # ╔═╡ 21f57310-9ceb-423c-a9ce-5beb1060a5a3 @htl(""" @@ -354,32 +300,6 @@ my_data = [ """) -# ╔═╡ 94561cb1-2325-49b6-8b22-943923fdd91b -details(md""" - ```htmlmixed - - - - ``` - """, "Show with syntax highlighting") - # ╔═╡ 0866afc2-fd42-42b7-a572-9d824cf8b83b md""" ## Custom `@bind` output @@ -432,42 +352,6 @@ ClickCounter(text="Click") = @htl(""" """) -# ╔═╡ b0c246ed-b871-461b-9541-280e49b49136 -details(md""" -```htmlmixed -
- - - -
-``` -""", "Show with syntax highlighting") - # ╔═╡ 9346d8e2-9ba0-4475-a21f-11bdd018bc60 @bind num_clicks ClickCounter() @@ -664,6 +548,16 @@ md""" (Though using `HypertextLiteral.jl` would make more sense for this purpose.) """ +# ╔═╡ fc8984c8-4668-418a-b258-a1718809470c + + +# ╔═╡ 846354c8-ba3b-4be7-926c-d3c9cc9add5f +films = [ + (title="Frances Ha", director="Noah Baumbach", year=2012), + (title="Portrait de la jeune fille en feu", director="Céline Sciamma", year=2019), + (title="De noorderlingen", director="Alex van Warmerdam", year=1992), +]; + # ╔═╡ c857bb4b-4cf4-426e-b340-592cf7700434 @htl(""" """) -# ╔═╡ d121e085-c69b-490f-b315-c11a9abd57a6 -details(md""" - ```htmlmixed - - ``` - """, "Show with syntax highlighting") - -# ╔═╡ fc8984c8-4668-418a-b258-a1718809470c - - -# ╔═╡ 846354c8-ba3b-4be7-926c-d3c9cc9add5f -films = [ - (title="Frances Ha", director="Noah Baumbach", year=2012), - (title="Portrait de la jeune fille en feu", director="Céline Sciamma", year=2019), - (title="De noorderlingen", director="Alex van Warmerdam", year=1992), -]; - # ╔═╡ a33c7d7a-8071-448e-abd6-4e38b5444a3a md""" ## Stateful output with `this` @@ -765,24 +623,6 @@ let """ end -# ╔═╡ d4bdc4fe-2af8-402f-950f-2afaf77c62de -details(md""" - ```htmlmixed - - ``` - """, "Show with syntax highlighting") - # ╔═╡ e77cfefc-429d-49db-8135-f4604f6a9f0b md""" ### Example: d3.js transitions @@ -837,36 +677,6 @@ return output """) -# ╔═╡ e910982c-8508-4729-a75d-8b5b847918b6 -details(md""" -```htmlmixed - - - -``` -""", "Show with syntax highlighting") - # ╔═╡ 781adedc-2da7-4394-b323-e508d614afae md""" ### Example: Preact with persistent state @@ -880,6 +690,11 @@ Modify `x`, add and remove elements, and notice that preact maintains its state. # ╔═╡ 85483b28-341e-4ed6-bb1e-66c33613725e x = ["hello pluton!", 232000,2,2,12 ,12,2,21,1,2, 120000] +# ╔═╡ 3266f9e6-42ad-4103-8db3-b87d2c315290 +state = Dict( + :x => x + ) + # ╔═╡ 9e37c18c-3ebb-443a-9663-bb4064391d6e @htl(""" + \"\"\") +end +``` + +In this example, the `const d` is populated from a hook into Pluto's data transfer. For large amounts of typed vector data (e.g. `Vector{UInt8}` or `Vector{Float64}`), this is *much* more efficient than interpolating the data directly with HypertextLiteral using `$(d)`, which would use a JSON-like string serialization. + +**Note:** this API is still *experimental*, and might change in the future. +""" + +# ╔═╡ da7091f5-8ba2-498b-aa8d-bbf3b4505b81 +md""" +# Appendix +""" + +# ╔═╡ 64cbf19c-a4e3-4cdb-b4ec-1fbe24be55ad +details(x, summary="Show more") = @htl(""" +
+ $(summary) + $(x) +
+ """) + +# ╔═╡ 93abe0dc-f041-475f-9ef7-d8ee4408414b +details(md""" + ```htmlmixed + +
+

+ Learning HTML and CSS +

+

+ It is easy to learn HTML and CSS because they are not 'programming languages' like Julia and JavaScript, they are markup languages: there are no loops, functions or arrays, you only declare how your document is structured (HTML) and what that structure looks like on a 2D color display (CSS). +

+

+ As an example, this is what this cell looks like, written in HTML and CSS: +

+
+ + + + ``` + """, "Show with syntax highlighting") + +# ╔═╡ d12b98df-8c3f-4620-ba3c-2f3dadac521b +details(md""" + ```htmlmixed + + ``` + """, "Show with syntax highlighting") + +# ╔═╡ 94561cb1-2325-49b6-8b22-943923fdd91b +details(md""" + ```htmlmixed + + + + ``` + """, "Show with syntax highlighting") + +# ╔═╡ b0c246ed-b871-461b-9541-280e49b49136 +details(md""" +```htmlmixed +
+ + + +
+``` +""", "Show with syntax highlighting") + +# ╔═╡ d121e085-c69b-490f-b315-c11a9abd57a6 +details(md""" + ```htmlmixed + + ``` + """, "Show with syntax highlighting") + +# ╔═╡ d4bdc4fe-2af8-402f-950f-2afaf77c62de +details(md""" + ```htmlmixed + + ``` + """, "Show with syntax highlighting") + +# ╔═╡ e910982c-8508-4729-a75d-8b5b847918b6 +details(md""" +```htmlmixed + + + +``` +""", "Show with syntax highlighting") + +# ╔═╡ 05d28aa2-9622-4e62-ab39-ca4c7dde6eb4 +details(md""" + ```htmlmixed + - \"\"\") +# ╔═╡ cc318a19-316f-4fd9-8436-fb1d42f888a3 +demo_img = let + url = "https://user-images.githubusercontent.com/6933510/116753174-fa40ab80-aa06-11eb-94d7-88f4171970b2.jpeg" + data = read(download(url)) + PlutoUI.Show(MIME"image/jpg"(), data) end -``` -In this example, the `const d` is populated from a hook into Pluto's data transfer. For large amounts of typed vector data (e.g. `Vector{UInt8}` or `Vector{Float64}`), this is *much* more efficient than interpolating the data directly with HypertextLiteral using `$(d)`, which would use a JSON-like string serialization. - -**Note:** this API is still *experimental*, and might change in the future. -""" +# ╔═╡ 7aacdd8c-1571-4461-ba6e-0fd65dd8d788 +demo_html = @htl("Hello!") # ╔═╡ ebec177c-4c33-45a4-bdbd-f16944631aff md""" @@ -1069,29 +1092,6 @@ $(embed_display(rand(4))) You can [learn more](https://github.com/fonsp/Pluto.jl/pull/1126) about how this feature works, or how to use it inside packages. """ -# ╔═╡ da7091f5-8ba2-498b-aa8d-bbf3b4505b81 -md""" -# Appendix -""" - -# ╔═╡ 64cbf19c-a4e3-4cdb-b4ec-1fbe24be55ad -details(x, summary="Show more") = @htl(""" -
- $(summary) - $(x) -
- """) - -# ╔═╡ cc318a19-316f-4fd9-8436-fb1d42f888a3 -demo_img = let - url = "https://user-images.githubusercontent.com/6933510/116753174-fa40ab80-aa06-11eb-94d7-88f4171970b2.jpeg" - data = read(download(url)) - PlutoUI.Show(MIME"image/jpg"(), data) -end - -# ╔═╡ 7aacdd8c-1571-4461-ba6e-0fd65dd8d788 -demo_html = @htl("Hello!") - # ╔═╡ 00000000-0000-0000-0000-000000000001 PLUTO_PROJECT_TOML_CONTENTS = """ [deps] @@ -1109,9 +1109,9 @@ PLUTO_MANIFEST_TOML_CONTENTS = """ [[AbstractPlutoDingetjes]] deps = ["Pkg"] -git-tree-sha1 = "8eaf9f1b4921132a4cff3f36a1d9ba923b14a481" +git-tree-sha1 = "91bd53c39b9cbfb5ef4b015e8b582d344532bd0a" uuid = "6e696c72-6542-2067-7265-42206c756150" -version = "1.1.4" +version = "1.2.0" [[ArgTools]] uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f" @@ -1156,9 +1156,9 @@ version = "0.9.4" [[IOCapture]] deps = ["Logging", "Random"] -git-tree-sha1 = "f7be53659ab06ddc986428d3a9dcc95f6fa6705a" +git-tree-sha1 = "d75853a0bdbfb1ac815478bacd89cd27b550ace6" uuid = "b5f81e59-6552-4d32-b1f0-c071b021bf89" -version = "0.2.2" +version = "0.2.3" [[InteractiveUtils]] deps = ["Markdown"] @@ -1166,9 +1166,9 @@ uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240" [[JSON]] deps = ["Dates", "Mmap", "Parsers", "Unicode"] -git-tree-sha1 = "3c837543ddb02250ef42f4738347454f95079d4e" +git-tree-sha1 = "31e996f0a15c7b280ba9f76636b3ff9e2ae58c9a" uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6" -version = "0.21.3" +version = "0.21.4" [[LibCURL]] deps = ["LibCURL_jll", "MozillaCACerts_jll"] @@ -1219,10 +1219,10 @@ uuid = "14a3606d-f60d-562e-9121-12d972cd8159" uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908" [[Parsers]] -deps = ["Dates", "SnoopPrecompile"] -git-tree-sha1 = "478ac6c952fddd4399e71d4779797c538d0ff2bf" +deps = ["Dates", "PrecompileTools", "UUIDs"] +git-tree-sha1 = "4b2e829ee66d4218e0cef22c0a64ee37cf258c29" uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0" -version = "2.5.8" +version = "2.7.1" [[Pkg]] deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"] @@ -1230,15 +1230,21 @@ uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" [[PlutoUI]] deps = ["AbstractPlutoDingetjes", "Base64", "ColorTypes", "Dates", "FixedPointNumbers", "Hyperscript", "HypertextLiteral", "IOCapture", "InteractiveUtils", "JSON", "Logging", "MIMEs", "Markdown", "Random", "Reexport", "URIs", "UUIDs"] -git-tree-sha1 = "5bb5129fdd62a2bbbe17c2756932259acf467386" +git-tree-sha1 = "b478a748be27bd2f2c73a7690da219d0844db305" uuid = "7f904dfe-b85e-4ff6-b463-dae2292396a8" -version = "0.7.50" +version = "0.7.51" + +[[PrecompileTools]] +deps = ["Preferences"] +git-tree-sha1 = "9673d39decc5feece56ef3940e5dafba15ba0f81" +uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a" +version = "1.1.2" [[Preferences]] deps = ["TOML"] -git-tree-sha1 = "47e5f437cc0e7ef2ce8406ce1e7e24d44915f88d" +git-tree-sha1 = "7eb1686b4f04b82f96ed7a4ea5890a4f0c7a09f1" uuid = "21216c6a-2e73-6563-6e65-726566657250" -version = "1.3.0" +version = "1.4.0" [[Printf]] deps = ["Unicode"] @@ -1263,12 +1269,6 @@ uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce" [[Serialization]] uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b" -[[SnoopPrecompile]] -deps = ["Preferences"] -git-tree-sha1 = "e760a70afdcd461cf01a575947738d359234665c" -uuid = "66db9d55-30c0-4569-8b51-7e840670fc0c" -version = "1.0.3" - [[Sockets]] uuid = "6462fe0b-24de-5631-8697-dd941f90decc"