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

> W&B App またはプログラムで W&B レポートを作成します。

# レポートを作成

<Note>
  W\&B Report and Workspace API はパブリックプレビューです。
</Note>

以下のタブから、W\&B App で、または W\&B Report and Workspace API を使ってプログラムからレポートを作成する方法を確認できます。

プログラムからレポートを作成する方法の例については、この [Google Colab](https://colab.research.google.com/github/wandb/examples/blob/master/colabs/intro/Report_API_Quickstart.ipynb) を参照してください。

<Tabs>
  <Tab title="W&B App">
    1. W\&B App でプロジェクトのワークスペースにアクセスします。

    2. ワークスペースの右上にある **Create report** をクリックします。

           <Frame>
             <img src="https://mintcdn.com/wb-21fd5541-docs-hivemind-launch/R2JcDHqq5H9e7IgE/images/reports/create_a_report_button.png?fit=max&auto=format&n=R2JcDHqq5H9e7IgE&q=85&s=d7655f6c04483257527f51cf907f78a7" alt="レポート作成ボタン" width="2510" height="462" data-path="images/reports/create_a_report_button.png" />
           </Frame>

    3. モーダルが表示されます。最初に追加するチャートを選択します。チャートは後からレポートのインターフェースで追加または削除できます。

           <Frame>
             <img src="https://mintcdn.com/wb-21fd5541-docs-hivemind-launch/R2JcDHqq5H9e7IgE/images/reports/create_a_report_modal.png?fit=max&auto=format&n=R2JcDHqq5H9e7IgE&q=85&s=8063180331ab87cfd5d6a12be5a96eb5" alt="レポート作成モーダル" width="920" height="840" data-path="images/reports/create_a_report_modal.png" />
           </Frame>

    4. 新しい Runs がレポートに追加されないようにするには、**Filter run sets** オプションを選択します。このオプションはオンとオフを切り替えられます。**Create report** をクリックすると、下書きのレポートがレポートタブに作成され、引き続き編集できます。
  </Tab>

  <Tab title="Report tab">
    1. W\&B App でプロジェクトのワークスペースにアクセスします。
    2. プロジェクト内の **Reports** タブ (クリップボードのアイコン) を選択します。
    3. レポートページで **Create Report** ボタンを選択します。

           <Frame>
             <img src="https://mintcdn.com/wb-21fd5541-docs-hivemind-launch/R2JcDHqq5H9e7IgE/images/reports/create_report_button.png?fit=max&auto=format&n=R2JcDHqq5H9e7IgE&q=85&s=ef079c2a997f736e9a7cf9f10e2611fe" alt="レポート作成ボタン" width="2542" height="1614" data-path="images/reports/create_report_button.png" />
           </Frame>
  </Tab>

  <Tab title="Report and Workspace API">
    プログラムでレポートを作成します。

    1. W\&B SDK (`wandb`) と Report and Workspace API (`wandb-workspaces`) をインストールします。
       ```bash theme={null}
       pip install wandb wandb-workspaces
       ```

    2. 次に、workspaces を import します。
       ```python theme={null}
       import wandb
       import wandb_workspaces.reports.v2 as wr
       ```

    3. `wandb_workspaces.reports.v2.Report` を使ってレポートを作成します。Report Class Public API ([`wandb.apis.reports`](/ja/models/ref/python/public-api/api#reports)) でレポートインスタンスを作成します。プロジェクト名を指定します。
       ```python theme={null}
       report = wr.Report(project="report_standard")
       ```

    4. レポートを保存します。`.save()` method を call するまで、Reports は W\&B Server に upload されません。
       ```python theme={null}
       report.save()
       ```

    App UI を使ってインタラクティブに、またはプログラムからレポートを編集する方法については、[レポートを編集する](/ja/models/reports/edit-a-report/) を参照してください。
  </Tab>
</Tabs>
