Asciicast.jl is all about showcasing Julia code running in a REPL using technologies developed by the open-source asciinema project. (It is totally unaffiliated with the authors of that project, however).

Quick example

using Asciicast
    using Pkg
    1 + 1

This example creates a Cast object using the @cast_str macro, which captures the input and the output. Check out Creating casts for more on creating Cast objects (or Cast files for a lower level API, if you are interested).

Here, the Cast object is being rendered by the javascript asciinema-player loaded by Documenter. See Documenter usage for more on that.

Likewise, check out Markdown usage for using Asciicast.jl to generate and maintain gifs of code execution in documents like READMEs.

Table of contents