Documentation Index
Fetch the complete documentation index at: https://wb-21fd5541-update-training-api-26.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
GitHub source
class Html
HTML コンテンツを W&B にログ記録するための W&B クラスです。
method Html.__init__
__init__(
data: Union[str, pathlib.Path, ForwardRef('TextIO')],
inject: bool = True,
data_is_not_path: bool = False
) → None
W&B HTML オブジェクトを作成します。
Args:
data: 拡張子が “.html” のファイルへのパスである文字列、またはリテラル HTML を含む文字列、あるいは IO オブジェクト。
inject: HTML オブジェクトにスタイルシートを追加します。False に設定すると、HTML は変更されずにそのまま渡されます。
data_is_not_path: False に設定されている場合、data はファイルへのパスとして扱われます。
Examples:
ファイルへのパスを指定して初期化することができます:
with wandb.init() as run:
# ファイルパスを使用してログを記録
run.log({"html": wandb.Html("./index.html")})
あるいは、文字列または IO オブジェクト内のリテラル HTML を指定して初期化することもできます:
with wandb.init() as run:
# 文字列の HTML を使用してログを記録
run.log({"html": wandb.Html("<h1>Hello, world!</h1>")})