Comments (3)
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.
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.
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)
- Doc suggestion: no ImageMagick on ElCapitan and Sierra HOT 2
- In windows bit64 Could not find \expanded. HOT 2
- "No image generated." HOT 7
- loading tikzmagic in latest jupyter notebook
- Generate SVG output with dvisvgm HOT 4
- Support for tikz-feynman
- Fatal error occurred, no output PDF file produced HOT 2
- Bug : The "-po, --pictureoptions" argument should not contains quotes after processing HOT 1
- Error in python 2 conda notebook HOT 1
- LaTeX terminated with signal -1 HOT 2
- Too low image size HOT 1
- Two tikz side by side
- draw coordinates wrong when using pgfplots HOT 1
- unable to generate svg HOT 3
- No image generated; permission issue? HOT 3
- ModuleNotFoundError in Python 3.8 HOT 1
- RGB color space not permitted on grayscale PNG HOT 2
- word splitting in arguments to %%tikz HOT 1
- Google Colab install via pip fails HOT 3
- Log messages are visible in the result HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipython-tikzmagic.