At the start of my application, I initialize a connection to WeightsAndBiases via
run = wandb.init(project="...")
Later on, I would like to check if a wandb run has been initialized.
Is there a way to do this without passing the run object around?
The currently active run object can be accessed via
wandb.run. It will beNoneif no run is initialised.It is guaranteed that there is at most one active
wandb.Runobject in any process (source).