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

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
begin
import Pkg
Pkg.activate(mktempdir())
Pkg.add("CSV")
using CSV
end
❔
  Activating new project at `/tmp/jl_8e5tiD`
    Updating registry at `~/.julia/registries/General.toml`
   Resolving package versions...
   Installed WeakRefStrings ── v1.4.2
   Installed WorkerUtilities ─ v1.6.1
   Installed FilePathsBase ─── v0.9.24
   Installed CSV ───────────── v0.10.15
    Updating `/tmp/jl_8e5tiD/Project.toml`
  [336ed68f] + CSV v0.10.15
    Updating `/tmp/jl_8e5tiD/Manifest.toml`
  [336ed68f] + CSV v0.10.15
  [944b1d66] + CodecZlib v0.7.8
  [34da2185] + Compat v4.16.0
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [48062228] + FilePathsBase v0.9.24
  [842dd82b] + InlineStrings v1.4.3
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [bac558e1] + OrderedCollections v1.8.0
  [69de0a69] + Parsers v2.8.1
  [2dfb63ee] + PooledArrays v1.4.3
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [91c51154] + SentinelArrays v1.4.8
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.12.0
  [3bb67fe8] + TranscodingStreams v0.11.3
  [ea10d353] + WeakRefStrings v1.4.2
  [76eceee3] + WorkerUtilities v1.6.1
  [56f22d72] + Artifacts
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [de0858da] + Printf
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [fa267f1f] + TOML
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
  [e66e0078] + CompilerSupportLibraries_jll
  [4536629a] + OpenBLAS_jll
  [83775a58] + Zlib_jll
  [8e850b90] + libblastrampoline_jll
Precompiling project...
WorkerUtilities
FilePathsBase
WeakRefStrings
CSV
  4 dependencies successfully precompiled in 10 seconds (19 already precompiled)
13.3 s
IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=85, maxsize=Inf, ptr=1, mark=-1)
👀 Reading hidden code
csv = IOBuffer("""name,height,age
Alice,1.60,21
Bob,1.83,40
Claire,1.75,31
David,1.50,25
Edith,1.68,30
""")
37.4 μs
Error message

ArgumentError: provide a valid sink argument, like `using DataFrames; CSV.read(source, DataFrame)`

Stack trace

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

  1. read(source::IOBuffer, sink::Nothing; copycols::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    from CSV.jl:115
  2. read(source::IOBuffer, sink::Nothing)
    from CSV.jl:114
  3. data = CSV.read(csv)
data = CSV.read(csv)
👀 Reading hidden code
---
Error message

UndefVarError: t1 not defined

Stack trace

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

  1. t1[1]
t1[1]
👀 Reading hidden code
---

👀 Reading hidden code
90.9 μs