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
"/tmp/jl_eTn9w8"
👀 Reading hidden code
j = download("https://fonsp.com/img/doggoSmall.jpg?raw=true")
349 ms
"/tmp/jl_ac6bmA"
👀 Reading hidden code
s = download("https://raw.githubusercontent.com/fonsp/Pluto.jl/main/frontend/img/logo.svg")
413 ms
👀 Reading hidden code
read(j)
60.0 μs
👀 Reading hidden code
begin
struct A end
struct B end
function Base.show(io::IO, ::MIME"image/svg+xml", x::A)
write(io, read(s))
end
function Base.show(io::IO, ::MIME"image/jpg", x::B)
write(io, read(j))
end
end
4.9 ms
👀 Reading hidden code
using BenchmarkTools
119 ms
image/svg+xml
HTML(read(s, String))
👀 Reading hidden code
4.4 ms
A()
👀 Reading hidden code
15.5 μs
B()
👀 Reading hidden code
14.5 μs
[A(), B()]
👀 Reading hidden code
17.9 ms