Documentation Index
Fetch the complete documentation index at: https://translations.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
GitHub 소스 코드
class Html
HTML 콘텐츠를 W&B에 로깅하기 위한 W&B 클래스입니다.
메서드 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:
run.log({"html": wandb.Html("<h1>Hello, world!</h1>")})