Git Product home page Git Product logo

Comments (3)

mkrphys avatar mkrphys commented on August 18, 2024

Dear David,

I agree that this should be possible and it should not be hard to implement. Unfortunately, I do not have time for this at the moment. But feel welcome to have a look at this issue. I will happily accept a pull request adding this feature.

Cheers,
Michael

On 15.10.2015, at 01:17, David Powell [email protected] wrote:

I have found this extension very useful. However, with latex and tikz, it is very easy to make syntax errors which cause compilation to fail. When this happens, the latex error message does not display in the notebook, but instead displays in the console used to start the notebook. This makes diagnosing the errors even more difficult.

I assume that it should be possible to capture stdout/stderr from the latex process, and display it in the notebook output in case of an error, but I have not looked into this yet.


Reply to this email directly or view it on GitHub #6.

from ipython-tikzmagic.

DavidPowell avatar DavidPowell commented on August 18, 2024

I just had a look through the code. Latex errors are already captured by reading the log file, so there is no need to capture stderr. The problem is that if a latex error occurs, it is just added to the display data, but the magic processing continues. This inevitably results in an error further on due to missing files. Because an exception gets raised, the text display data never gets shown to the user.

The simple fix is if the latex error log is returned, just display it and return immediately. A pull request is on its way.

from ipython-tikzmagic.

mkrphys avatar mkrphys commented on August 18, 2024

Sorry for the (very) late reply. I just merged the pull request. Thanks for looking into this!

Best,
Michael

On 27.10.2015, at 05:02, David Powell [email protected] wrote:

I just had a look through the code. Latex errors are already captured by reading the log file, so there is no need to capture stderr. The problem is that if a latex error occurs, it is just added to the display data, but the magic processing continues. This inevitably results in an error further on due to missing files. Because an exception gets raised, the text display data never gets shown to the user.

The simple fix is if the latex error log is returned, just display it and return immediately. A pull request is on its way.


Reply to this email directly or view it on GitHub.

from ipython-tikzmagic.

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.