neptune-client
neptune-client copied to clipboard
Feature Request: Configure info output to stdout
Issue
Neptune writes some information to stdout. This can break for example the pytorch lightning progress bar. Example: The run URL is written in https://github.com/neptune-ai/neptune-client/blob/bd66c94db7b285715132787582b3da6108f02605/neptune/new/metadata_containers/metadata_container.py#L350
Describe the solution you'd like
A silent
keyword to neptune.init() to silence all click.echo outputs
Additional context
Sometimes it might be easier to explicitly get the information from Neptune and output it manually than have neptune output directly.
hey @fzimmermann89
Thanks a lot for the comment. I'm passing it to the product team for further consideration.
I did not encounter issues when few libs write to the stdout (like Lightning + Neptune). Can you perhaps show what went wrong in your case? Maybe I'l be able to suggest something.
Thanks for the offer. My issues were caused by creating the Neptune run manually after the progress bar has already been created (to reuse code between different projects). So the URL was printed in the same line as part of the progress bar, followed by a new line and a new progress bar. This makes the logs a bit more chaotic to grep through down the line.. I spent some time working around this by monkey patching, but it would be nice to just have to option to completely silent neptune.
Thanks!
Seems that you are printing some metadata (not only progbar) to the stdout, correct? In such case I'm curious if you considered logging it to Neptune instead, for all visualizing / analyzing features?
We also sent some info to stderr, which is occasionally important if sth. goes wrong.
@Blaizzy forwarding this discussion to you :)
Hi @fzimmermann89
Prince here, a Data Scientist at neptune.ai,
So the URL was printed in the same line as part of the progress bar, followed by a new line and a new progress bar. This makes the logs a bit more chaotic to grep through down the line.. I spent some time working around this by monkey patching...
I would love to see your logs without and without the monkey patching as well as the monkey patching code, perhaps this will help us make a better suggestion for a solution using an existing feature or feedback to the product team.
If you don't mind you can send them to my email: [email protected]
Hey @fzimmermann89
I'm just checking in to see if you still need help with this issue
Hi,
thanks for following up. I don't really need help, but would still prefer to be able to simply silent neptune during training.
So this is more a feature request than a request for help and I would understand if you choose to not implement this any time soon.
best Felix
We appreciate user feedback it helps us improve the product.
You said you spent some time working on a monkey patch, do you mind sharing it with me as well as the logs you get before and after?
This will help me pass complete feedback to the product team and they will evaluate and make the final decision on whether it's something they want to implement now or later.
Hey there, just checking to see if you still need help with this or if you have any other questions or doubts.
Stale issue