avik-pal / Wandb.jl

Unofficial Julia bindings for logging experiments to wandb.ai
https://avik-pal.github.io/Wandb.jl/stable/
MIT License
82 stars 11 forks source link

Don't log during init #14

Closed ericphanson closed 2 years ago

ericphanson commented 2 years ago

Would you be open to moving https://github.com/avik-pal/Wandb.jl/blob/379dc8f7b6164c9e0675fb35f031ac68011c2218/src/Wandb.jl#L9 to a separate function (maybe just a Wandb.version() ?). I'm starting to integrate Wandb into a codebase that only uses it sometimes, but since loading Wandb triggers the log message, the user always sees the message. IMO such messages are best left to "applications" (leaf-nodes of the pkg tree) rather than libraries.

avik-pal commented 2 years ago

Yeah I have been meaning to do it for a long time just keep forgetting :sweat: