To be able to edit code and run cells, you need to run the notebook yourself. Where would you like to run the notebook?

This notebook takes about 20 seconds to run.

In the cloud (experimental)

Binder is a free, open source service that runs scientific notebooks in the cloud! It will take a while, usually 2-7 minutes to get a session.

On your computer

(Recommended if you want to store your changes.)

  1. Copy the notebook URL:
  2. Run Pluto

    (Also see: How to install Julia and Pluto)

  3. Paste URL in the Open box

Frontmatter

If you are publishing this notebook on the web, you can set the parameters below to provide HTML metadata. This is useful for search engines and social media.

Author 1
"/Users/fons/Documents/18S191/"
👀 Reading hidden code
dir = "/Users/fons/Documents/18S191/"
11.2 μs
Error message

IOError: readdir("/Users/fons/Documents/18S191/website"): no such file or directory (ENOENT)

Stack trace

Here is what happened, the most recent locations are first:

  1. check_channel_state
  2. take_unbuffered(c::Channel{Tuple{String, Vector{String}, Vector{String}}})
  3. take!
  4. iterate(c::Channel{Tuple{String, Vector{String}, Vector{String}}}, state::Nothing)
  5. iterate
  6. iterate
  7. grow_to!(dest::Vector{Vector{String}}, itr::Base.Generator{Channel{Tuple{String, Vector{String}, Vector{String}}}, var"#7#9"{typeof(filter), typeof(endswith), typeof(joinpath)}})
  8. collect
  9. flatmap
    flatmap(f::Function, xs) = vcat(map(f,xs)...)
  10. Show more...
mdfiles = flatmap(walkdir(joinpath(dir, "website"))) do (root, dirs, files)
joinpath.([root], filter(f -> endswith(f,".md"), files))
end
👀 Reading hidden code
---
Error message

IOError: readdir("/Users/fons/Documents/18S191/notebooks"): no such file or directory (ENOENT)

Stack trace

Here is what happened, the most recent locations are first:

  1. check_channel_state
  2. take_unbuffered(c::Channel{Tuple{String, Vector{String}, Vector{String}}})
  3. take!
  4. iterate(c::Channel{Tuple{String, Vector{String}, Vector{String}}}, state::Nothing)
  5. iterate
  6. iterate
  7. grow_to!(dest::Vector{Vector{String}}, itr::Base.Generator{Channel{Tuple{String, Vector{String}, Vector{String}}}, var"#11#13"{typeof(filter), typeof(endswith), typeof(joinpath)}})
  8. collect
  9. flatmap
    flatmap(f::Function, xs) = vcat(map(f,xs)...)
  10. Show more...
Be patient :)
nbfiles = flatmap(walkdir(joinpath(dir, "notebooks"))) do (root, dirs, files)
joinpath.([root], filter(f -> endswith(f,".jl"), files))
end
👀 Reading hidden code
---
identifier (generic function with 1 method)
identifier(f) = joinpath(splitpath(f)[end-1:end]...)
👀 Reading hidden code
522 μs
Error message

Another cell defining nbfiles contains errors.

identifier.(nbfiles)
👀 Reading hidden code
---
Error message

Another cell defining nbfiles and mdfiles contains errors.

Silly computer!
filter(nbfiles) do f
any(mdfiles) do mf
occursin(identifier(f), read(mf, String))
end
end
👀 Reading hidden code
---
flatmap (generic function with 1 method)
flatmap(f::Function, xs) = vcat(map(f,xs)...)
👀 Reading hidden code
417 μs