Live Coding (with fragment templates)
Edit and Execute Code Blocks
September 22, 2025
Samantha Monty
Chair for Human-Computer Interaction, University of Würzburg

Live Coding in Code Blocks

No Jupyter, but a self-hosted server with standard Docker images that run the code snippets:

The server runs at:

Languages (so far):

  • Python
  • Rust
  • Haskell
  • Java

TODO

Python

Live

msg = "Hello, World!"
print(msg)
Python

source code

``` {.python .live-code- language="Python"}
msg = "Hello, World!"
print(msg)
```

Haskell

Live

msg = "Hello, World!"
print msg
GHCi

Source code

``` {.live-code- language="Haskell" sandbox="GHCi"
 height="200px"}
msg = "Hello, World!"
print msg
```