-
Notifications
You must be signed in to change notification settings - Fork 207
Store warnings or other stderr #295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I guess you want to figure out which the example the warnings are coming from? Hmm I have to say that I generally pipe the output of All in all I don't think this should be very high on the priority list of sphinx-gallery. |
I've found the output of make html not very informative. warnings not
aligned with example names
|
Agreed that's why I suggested the PYTHONWARNINGS work-around ... |
I've found the output of make html not very informative. warnings not
aligned with example names
Really? Which version are you using? At the end of the build there is a
list of all files specified with absolute path and their corresponding
trace-back. And of course during build those warnings are also
printed. Yes those are not to helpful because you have to look for them
back in the log, but the end summary is very helpful because is at the
end.
But I just fail to see where the warning is not aligned with the example
name.
|
I am not sure why you mention the summary which is good for exceptions but not for warnings (this is the reason I said a bit tongue-in-cheek use PYTHONWARNINGS, i.e. to turn warnings into exceptions so that the source would be easier to spot) Look at this log: I suppose it does not help that we switched to sphinx logging. At least before we had the names of all the files ... |
Just a quick example look for DataDimensionalityWarning
You would be tempted to believe that |
yes, thanks for uncovering details I glossed over. I suspect this is a
result of using Sphinx logging and there may be a better fix if this is
considered a bug.
|
Just to be clear by "sphinx logging" I meant changes introduced by this PR #250 and maybe others. |
@QuLogic do you know off the top of your head if there is an easy way to configure sphinx logging (or maybe status iterator is the right word here) to be in "print each output on a separate line" mode? |
If you pass non-zero |
I would appreciate a feature where warnings (or perhaps any stderr output) produced by a gallery script was logged somewhere in an associated file. This would make it easier to find unwanted warnings, etc.
The text was updated successfully, but these errors were encountered: