html
html
#
html — a log as a static tree of <details>, and the assets a live renderer needs.
The fragment carries its own stylesheet, so it reads the same in a notebook
cell, a stored page and an email. script is the browser side of the same
picture: it builds the identical tree from the JSON entries and upserts them
as they stream in. error is the one way an error is shown, in the tree or
beside it: the text with a button that copies it. An entry's kind picks how
its message reads: prose, a shell command as code, or a program's output as a
terminal block with its ANSI colours (ansi_html).
error(text)
#
text as an error block with a button that copies it to the clipboard.
Source code in capturegraph-ui/capturegraph_ui/log/html.py
html(log)
#
script()
#
stale(entry, parent)
#
Whether entry was last logged in an earlier iteration than parent is on.