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 40 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
👀 Reading hidden code
using Plots
3.5 s
👀 Reading hidden code
import Serialization
143 μs
👀 Reading hidden code
struct Wow
a
b
end
911 μs
👀 Reading hidden code
ss = Serialization.Serializer(stdout)
6.2 ms
false
👀 Reading hidden code
Serialization.should_send_whole_type(ss, Wow)
8.5 ms
"7JL\x0f\x04\0\0\0\x15\0\b\xe2\x01\0\0\0\0\0\0\0\x02\0\0\0\0\0\0\0\x03\0\0\0\0\0\0\0"
👀 Reading hidden code
s([1,2,3])
415 ms
👀 Reading hidden code
w = Wow(6, Wow(7,8))
15.9 μs
"7JL\x0f\x04\0\0\x004\x10\x01\x03Wow\x1fN\x01\x04Main\x01\vworkspace#3D\xe54,\0\0\xe6\xe7"
👀 Reading hidden code
s(w)
56.3 ms
g (generic function with 1 method)
👀 Reading hidden code
g(x) = x^2
407 μs
"7JL\x0f\x04\0\0\x004\x10\x01\x02#g\x1fN\x01\x04Main\x01\vworkspace#3D"
👀 Reading hidden code
s(g)
12.1 ms
"7JL\x0f\x04\0\0\x005\x10\x01\x04Plot\x1f\v\x80\xae\x9c\x85\rR\v\x9e\xaf\\\xd7Uݼ\xa5\x91\x01\x05PlotsD\x01\0\0\0\x10\x01\tGRBackend\x1f\v\x80\xae\x9c\x85\rR\v\x9e\xaf\\\xd7Uݼ\xa5\x91\x01\x05PlotsD4,\x02\0\xe04\x10\x01\fDefaultsDict\x1f\v\x9c5\xd0\x19W\xa9칶L\xfc\xbe\x17\x15\xd8\x01\x01\x0fRecipesPipelineD5\x10\x01\x04Dict\x1fN\x9eD\x02\0\0\0\0\x01F\x1e\0\0\0\x01\x03dpi1d\0\0\0\x01\x18background_color_outside\x01\x05match\x01\x14plot_titlefontvalign\x01\avcenter\x01\x13warn_on_unsupportedM\x01\x10background_color4\x10\x01\x04RGBA\x1f\v?3\vl\xb6˦\xb8`Z\x84Y\xf7\x02\xa0" ⋯ 11339 bytes ⋯ "style\x01\x05solid\x01\tbar_edgesL\x01\bcontoursL,\xf1\0\x01\x04path\x01\x06quiverN,\xf4\0\x01\x05match,\xf5\0\x01\x05match\x01\tfillrangeN\x01\tbar_widthN,!\0,m\0\x7fN\x01\x0ecolorbar_entryM\x01\x04bins\x01\x04auto\x01\x11markerstrokestyle\x01\x05solid,\xfa\0\x01\x05match\x01\aweightsN\x01\x12series_annotationsN,\xfc\0\x01\x04auto\x01\x06levels\xee\x01\vconnectionsNN\x15\x12\x01\x01\0,{\0\xe0,0\x005\x10\x01\x04Dict\x1fN\x9eD\x02\0\0\0F\x12\x01\x01\0,{\0\x01\0\0\0\x01\x05##319,0\0,2\0\x15\x12\x01\x01\0,{\0\xdfM"
s(p)
👀 Reading hidden code
638 ms
import Pkg
👀 Reading hidden code
190 μs
sd(p)
👀 Reading hidden code
543 ms
p = plot(sin)
👀 Reading hidden code
4.5 s
"/tmp/jl_GCSrDv"
f = tempname()
👀 Reading hidden code
49.5 μs
s (generic function with 1 method)
s(x) = sprint(Serialization.serialize, x)
👀 Reading hidden code
416 μs
sd (generic function with 1 method)
sd(x) = let
f = tempname()
Serialization.serialize(f, x)
Serialization.deserialize(f)
end
👀 Reading hidden code
540 μs
# Serialization.serialize(f, w)
👀 Reading hidden code
8.1 μs
Error message

SystemError: opening file "/tmp/jl_GCSrDv": No such file or directory

Stack trace

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

  1. systemerror(p::String, errno::Int32; extrainfo::Nothing)
  2. #systemerror#68
  3. systemerror
  4. open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
  5. open
  6. open(f::typeof(deserialize), args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    from io.jl:328
  7. open
    from io.jl:328
  8. deserialize(filename::String)
  9. Serialization.deserialize(f)
uhmmmmmm??!
Serialization.deserialize(f)
👀 Reading hidden code
---