neptune-client icon indicating copy to clipboard operation
neptune-client copied to clipboard

Feature Request: Configure info output to stdout

Open fzimmermann89 opened this issue 2 years ago • 9 comments

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.

fzimmermann89 avatar Apr 27 '22 13:04 fzimmermann89

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.

kamil-kaczmarek avatar Apr 29 '22 20:04 kamil-kaczmarek

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.

fzimmermann89 avatar Apr 29 '22 22:04 fzimmermann89

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.

kamil-kaczmarek avatar Apr 29 '22 23:04 kamil-kaczmarek

@Blaizzy forwarding this discussion to you :)

kamil-kaczmarek avatar May 07 '22 17:05 kamil-kaczmarek

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]

Blaizzy avatar May 09 '22 09:05 Blaizzy

Hey @fzimmermann89

I'm just checking in to see if you still need help with this issue

Blaizzy avatar May 12 '22 11:05 Blaizzy

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

fzimmermann89 avatar May 12 '22 12:05 fzimmermann89

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.

Blaizzy avatar May 12 '22 14:05 Blaizzy

Hey there, just checking to see if you still need help with this or if you have any other questions or doubts.

Blaizzy avatar Jun 09 '22 09:06 Blaizzy

Stale issue

Blaizzy avatar Oct 24 '22 11:10 Blaizzy