> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Environment Variables

<Card title="Do environment variables overwrite the parameters passed to wandb.init()?" href="/support/models/articles/do-environment-variables-overwrite-the-p" arrow="true" horizontal>
  Arguments passed to wandb.init override environment variables. To respect a user-set environment variable while still pr ...
</Card>

<Card title="How can I define the local location for `wandb` files?" href="/support/models/articles/how-can-i-define-the-local-location-for-" arrow="true" horizontal>
  You can control where wandb stores its files locally by setting the following environment variables or, where noted, by  ...
</Card>

<Card title="How do I connect to W&B Self-Managed?" href="/support/models/articles/how-do-i-connect-to-wandb-self-managed" arrow="true" horizontal>
  W\&B Self-Managed is a self-hosted deployment that runs in your infrastructure. Point the SDK and CLI at your instance UR ...
</Card>

<Card title="How do I handle the 'Failed to query for notebook' error?" href="/support/models/articles/how-do-i-handle-the-failed-to-query-for-" arrow="true" horizontal>
  If you encounter the error message "Failed to query for notebook name, you can set it manually with the WANDB\_NOTEBOOK\_N ...
</Card>

<Card title="How do I run W&B offline?" href="/support/models/articles/how-do-i-run-wandb-offline" arrow="true" horizontal>
  To train on a machine without internet access and upload your results to W\&B later, follow these steps: 1. Set the envir ...
</Card>

<Card title="How do I silence W&B info messages?" href="/support/models/articles/how-do-i-silence-wb-info-messages" arrow="true" horizontal>
  W\&B emits info-level log messages by default, which can clutter notebook output. This page describes two ways to reduce  ...
</Card>

<Card title="How do I stop wandb from writing to my terminal or my Jupyter notebook output?" href="/support/models/articles/how-do-i-stop-wandb-from-writing-to-my-t" arrow="true" horizontal>
  Set the environment variable WANDB\_SILENT to true.
</Card>

<Card title="How do I switch between accounts on the same machine?" href="/support/models/articles/how-do-i-switch-between-accounts-on-the-" arrow="true" horizontal>
  To manage two W\&B accounts from the same machine, store both API keys in a file outside your repository, then load the k ...
</Card>

<Card title="How does wandb stream logs and writes to disk?" href="/support/models/articles/how-does-wandb-stream-logs-and-writes-to" arrow="true" horizontal>
  W\&B queues events in memory and writes them to disk asynchronously. This approach handles failures and supports the WAND ...
</Card>

<Card title="Is it possible to save metrics offline and sync them to W&B later?" href="/support/models/articles/is-it-possible-to-save-metrics-offline-a" arrow="true" horizontal>
  By default, wandb.init starts a process that syncs metrics in real time to the cloud. If you need to run experiments wit ...
</Card>

<Card title="What does wandb.init do to my training process?" href="/support/models/articles/what-does-wandbinit-do-to-my-training-pr" arrow="true" horizontal>
  When wandb.init() runs in a training script, an API call creates a run object on the W\&B servers. A new process starts t ...
</Card>

<Card title="What happens if internet connection is lost while I'm training a model?" href="/support/models/articles/what-happens-if-internet-connection-is-l" arrow="true" horizontal>
  If the library cannot connect to the internet, it enters a retry loop and continues to attempt to stream metrics until t ...
</Card>

<Card title="Where are artifacts downloaded, and how can I control that?" href="/support/models/articles/where-are-artifacts-downloaded-and-how-c" arrow="true" horizontal>
  By default, W\&B downloads artifacts to the artifacts/ folder. To change the location: Pass the path to wandb.Artifact(). ...
</Card>
