Let’s say I’m working on a jupyter notebook and I run a sweep
sweep_id = wandb.sweep(sweep_config, entity=WANDB_ENTITY, project=WANDB_PROJECT, )
wandb_agent = wandb.agent(sweep_id, project=WANDB_PROJECT, function=pipeline)
After an hour I’m happy with the sweep results and I stop execution, not here’s the bug, I CANNOT start a new run manually. Here’s what happens when I run the following code
run = wandb.init()
print(“------ RUN NAME ------”, run.name)
run.finish()run = wandb.init()
print(“------ RUN NAME ------”, run.name)
run.finish()
Output:
Changes to your `wandb` environment variables will be ignored because your `wandb` session has already started. For more information on how to modify your settings with `wandb.init()` arguments, please refer to the W&B docs.
Finishing last run (ID:ln732mvm) before initializing another...
Waiting for W&B process to finish... (success).
Synced fresh-sweep-32: https://wandb.ai/arkareem/test/runs/ln732mvm
Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
Find logs at: ./wandb/run-20220622_111904-ln732mvm/logs
Successfully finished last run (ID:ln732mvm). Initializing new run:
Tracking run with wandb version 0.12.18
Run data is saved locally in /mnt/m/MyFiles/Classes/wandb/run-20220622_112014-ln732mvm
Syncing run fresh-sweep-32 to Weights & Biases (docs)
Sweep page: https://wandb.ai/arkareem/test/sweeps/9t3sbtv5
------ RUN NAME ------ fresh-sweep-32
Waiting for W&B process to finish... (success).
Synced fresh-sweep-32: https://wandb.ai/arkareem/test/runs/ln732mvm
Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
Find logs at: ./wandb/run-20220622_112014-ln732mvm/logs
Changes to your `wandb` environment variables will be ignored because your `wandb` session has already started. For more information on how to modify your settings with `wandb.init()` arguments, please refer to the W&B docs.
Tracking run with wandb version 0.12.18
Run data is saved locally in /mnt/m/MyFiles/Classes/wandb/run-20220622_112037-ln732mvm
Syncing run fresh-sweep-32 to Weights & Biases (docs)
Sweep page: https://wandb.ai/arkareem/test/sweeps/9t3sbtv5
------ RUN NAME ------ fresh-sweep-32
Waiting for W&B process to finish... (success).
Synced fresh-sweep-32: https://wandb.ai/arkareem/test/runs/ln732mvm
Synced 5 W&B file(s), 0 media file(s), 0 artifact file(s) and 0 other file(s)
Find logs at: ./wandb/run-20220622_112037-ln732mvm/logs
How do I start a new run without restarting the notebook and starting everything from scratch???