jellycell.render.outputs¶
Render cell outputs (from manifests) to safe HTML.
Handles the four OutputRecord variants. For binary data (images),
either base64-inlines (inline=True) or writes blobs to an assets dir
and references them via relative URLs.
Module Contents¶
Functions¶
Render a single output record to an HTML fragment. |
API¶
- jellycell.render.outputs.render_output(output: jellycell.cache.manifest.OutputRecord, *, store: jellycell.cache.store.CacheStore, assets_dir: pathlib.Path, inline: bool) str¶
Render a single output record to an HTML fragment.