Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
GitHub source
class Html
W&B class for logging HTML content to W&B.
method Html.__init__
__init__(
data: 'str | pathlib.Path | TextIO',
inject: 'bool' = True,
data_is_not_path: 'bool' = False
) → None
Creates a W&B HTML object.
Args:
data: A string that is a path to a file with the extension “.html”, or a string or IO object containing literal HTML.
inject: Add a stylesheet to the HTML object. If set to False the HTML will pass through unchanged.
data_is_not_path: If set to False, the data will be treated as a path to a file.
Examples:
It can be initialized by providing a path to a file:
with wandb.init() as run:
run.log({"html": wandb.Html("./index.html")})
Alternatively, it can be initialized by providing literal HTML, in either a string or IO object:
with wandb.init() as run:
run.log({"html": wandb.Html("<h1>Hello, world!</h1>")})