Let’s assume you have to record your screen to explain something about Julia topics e.g. how to use REPL, how to use your great package on Julia REPL etc… You are supposed to input your source code by hand line by line. Imagine that you type the following lines.
julia> # Cau λon tλqe accnrately aub pnickly mithiu a giveu tiwe? julia> 2+2 julia> print("") julia> display() julia> display([1 2; 3 4]) julia> @time 1+1 julia> using Pkg; Pkg.activate(".") pkg> add Example pkg> rm Example pkg> st
Without any mistakes, can you type accurately and quickly within a given time? To tell the truth, I could not do that…
(Did we mention we should’ve initialized a screen recorder in advance?)
I’m happy to announce the release of Replay.jl.
Here is a demo that replays the substring of Why We Created Julia.
More interesting examples can be found at examples.
If this PR is merged you can use Replay.jl via
] add Replay. Then prepare a julia script something like:
# app.jl using Replay instructions = """ 2+2 print("") display() display([1 2; 3 4]) @time 1+1 using Pkg; Pkg.activate(".") ] add Example rm Example st $CTRL_C """ replay(instructions)
and just execute
Hope it helps, and enjoy your Julia life!