> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-serverless-sft-revamp.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 리포트 임베드하기

> W&B Reports 를 Notion 에 직접 임베드하거나 HTML IFrame 요소를 사용하여 삽입하세요.

## HTML iframe 요소

Reports 우측 상단에 있는 **Share** 버튼을 선택하세요. 모달 창이 나타납니다. 모달 창 내에서 **Copy embed code**를 선택하세요. 복사된 코드는 HTML Inline Frame (IFrame) 요소 내에서 렌더링됩니다. 복사한 코드를 원하는 iframe HTML 요소에 붙여넣으세요.

<Note>
  임베드 시에는 **공개(public)** 설정된 Reports만 볼 수 있습니다.
</Note>

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-serverless-sft-revamp/YFBmc2YVhUbeVCGI/images/reports/get_embed_url.gif?s=be47a0272088c139fcc782940c06bbbc" alt="Getting embed code" width="1425" height="721" data-path="images/reports/get_embed_url.gif" />
</Frame>

## Confluence

다음 애니메이션은 Confluence의 IFrame 셀 내에 리포트의 직접 링크를 삽입하는 방법을 보여줍니다.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-serverless-sft-revamp/YFBmc2YVhUbeVCGI/images/reports/embed_iframe_confluence.gif?s=c3ffe6e53b1276d525608b1dd3286576" alt="Embedding in Confluence" width="1425" height="721" data-path="images/reports/embed_iframe_confluence.gif" />
</Frame>

## Notion

다음 애니메이션은 Notion의 Embed 블록과 리포트의 임베드 코드를 사용하여 Notion 문서에 리포트를 삽입하는 방법을 보여줍니다.

<Frame>
  <img src="https://mintcdn.com/wb-21fd5541-serverless-sft-revamp/YFBmc2YVhUbeVCGI/images/reports/embed_iframe_notion.gif?s=2d6a00a76d3e11a0e36f3adb8c7cbf20" alt="Embedding in Notion" width="1425" height="738" data-path="images/reports/embed_iframe_notion.gif" />
</Frame>

## Gradio

`gr.HTML` 요소를 사용하여 Gradio 앱 내에 W\&B Reports 를 임베드하고 Hugging Face Spaces에서 사용할 수 있습니다.

```python theme={null}
import gradio as gr


def wandb_report(url):
    # iframe 태그를 생성하여 리포트를 렌더링합니다
    iframe = f'<iframe src={url} style="border:none;height:1024px;width:100%">'
    return gr.HTML(iframe)


with gr.Blocks() as demo:
    report = wandb_report(
        "https://wandb.ai/_scott/pytorch-sweeps-demo/reports/loss-22-10-07-16-00-17---VmlldzoyNzU2NzAx"
    )
demo.launch()
```

##
