Code Monkey home page Code Monkey logo

Comments (7)

agramfort avatar agramfort commented on June 12, 2024

from sphinx-gallery.

GaelVaroquaux avatar GaelVaroquaux commented on June 12, 2024

from sphinx-gallery.

lesteve avatar lesteve commented on June 12, 2024

I notice that in stdout there is no traceback, and in the rendered html example I only get the message that the script didn't compile.

But the traceback should be in stderr, right ? I am pretty sure at one point you would see the traceback in the example HTML.

from sphinx-gallery.

GaelVaroquaux avatar GaelVaroquaux commented on June 12, 2024

from sphinx-gallery.

Titan-C avatar Titan-C commented on June 12, 2024

do you mean not show stdout in final pages? I like having them.
So do I actually. When an example is very slow, it is good to have them
to show progress.

stdout goes always to the final pages. I was claiming that during the build process you get all the stdout of all the examples in the same terminal and is just a mess of text. So, I think it might be nicer not to show it.
Maybe to show progress put an indicator(that might be to complex and not a priority)

But the traceback should be in stderr, right ? I am pretty sure at one point
you would see the traceback in the example HTML.
That's certainly something that we would like to have.

The traceback is printed but becomes hard to find among all the other successful stdout of the other examples. Also it might be possible to keep track of which file is failing because now the execution is done by blocks which have no link to the original file besides the stdout claiming before which file got executed(you also loose the line number correspondence)

Finaly, traceback is not printed in the rendered HTML. I'm starting to think that might be useful.

from sphinx-gallery.

lesteve avatar lesteve commented on June 12, 2024

Finaly, traceback is not printed in the rendered HTML. I'm starting to think that might be useful.

I seem to remember it was the case in nilearn at one point but maybe I just dreamt about it!

from sphinx-gallery.

Titan-C avatar Titan-C commented on June 12, 2024

After merging #97 closing this.
The output of a script is written to stdout during build to have the feeling of progress. Errors are written to stderr, and on the rendered example, plus a summary at the end with the traceback.

from sphinx-gallery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.