Tap support playground
We have recently added Clojure tap support to Nextjournal. The most simple case is as follows:
Values send via tap are displayed above the result and below the stdout of a cell. One can now use our viewer API to send asynchronous updates during an execution.
:nextjournal/tap-id identifies a tap output which one can update also in other cells. Specifying a
tap-id is like a database upsert operation. If the id exists the tap output gets updated, if it doesn't exist the new output gets appended to the tap section of the current cell. With no
tap-id specified the result gets pushed to the tap section of the executing cell.
One use case is to implement a progress bar.
Progress bar: 😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍
List(10) (true, true, true, true, true, true, true, true, true, true)
tap-id can also be specified via metadata.
Also check out playing Tic Tac Toe on Nextjournal!