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
import Pkg
170 μs
👀 Reading hidden code
using Revise
416 ms
👀 Reading hidden code
using PlutoUI
495 ms
👀 Reading hidden code
Revise.watched_files
12.3 μs
Expr
  head: Symbol =
  args: Array{Any}((2,))
    1: Expr
      head: Symbol call
      args: Array{Any}((2,))
        1: Symbol f
        2: Symbol x
    2: Expr
      head: Symbol block
      args: Array{Any}((2,))
        1: LineNumberNode
          line: Int64 2
          file: Symbol /home/runner/work/disorganised-mess/disorganised-mess/with_terminal.jl#==#4a383250-fb36-11ea-19c7-836b8ef865ea
        2: Symbol x
Warning: asdf
@ Main.workspace#4 ~/work/disorganised-mess/disorganised-mess/with_terminal.jl#==#4a383250-fb36-11ea-19c7-836b8ef865ea:5
👀 Reading hidden code
with_terminal() do
dump(:(f(x) = x))
println(stderr, "asdf")
dump(stderr, :(f(x) = x))
@warn "asdf"
end
❔
asdf
Expr
  head: Symbol =
  args: Array{Any}((2,))
    1: Expr
      head: Symbol call
      args: Array{Any}((2,))
        1: Symbol f
        2: Symbol x
    2: Expr
      head: Symbol block
      args: Array{Any}((2,))
        1: LineNumberNode
          line: Int64 4
          file: Symbol /home/runner/work/disorganised-mess/disorganised-mess/with_terminal.jl#==#4a383250-fb36-11ea-19c7-836b8ef865ea
        2: Symbol x
735 ms
Expr
  head: Symbol =
  args: Array{Any}((2,))
    1: Expr
      head: Symbol call
      args: Array{Any}((2,))
        1: Symbol f
        2: Symbol x
    2: Expr
      head: Symbol block
      args: Array{Any}((2,))
        1: LineNumberNode
          line: Int64 2
          file: Symbol /home/runner/work/disorganised-mess/disorganised-mess/with_terminal.jl#==#015b7296-fb3a-11ea-0483-df693d24c54b
        2: Symbol x
👀 Reading hidden code
with_terminal() do
dump(:(f(x) = x))
end
111 ms