Is there a Jupyter-like environment for shell? For example, you could tell it to start from a Docker image, then give it shell commands to run in each block, and could show output. Maybe even could "script" to record interactive sessions (though no way of replaying those sessions on reloads, you'd have to detect file changes and diff and apply patches).