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

# 'Failed to query for notebook' エラーに対処するにはどうすればよいですか?

エラーメッセージ `"Failed to query for notebook name, you can set it manually with the WANDB_NOTEBOOK_NAME environment variable,"` が表示された場合は、環境変数を設定して対処してください。設定方法はいくつかあります。

<Tabs>
  <Tab title="ノートブック">
    ```python theme={null}
    %env "WANDB_NOTEBOOK_NAME" "notebook name here"
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    import os

    os.environ["WANDB_NOTEBOOK_NAME"] = "notebook name here"
    ```
  </Tab>
</Tabs>

***

<Badge stroke shape="pill" color="orange" size="md">[ノートブック](/ja/support/models/tags/notebooks)</Badge><Badge stroke shape="pill" color="orange" size="md">[環境変数](/ja/support/models/tags/environment-variables)</Badge>
