-
Notifications
You must be signed in to change notification settings - Fork 574
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
raise TypeError("Inkscape svg to pdf conversion failed") #302
Comments
Inkscape is used if there are SVG images, because those can't be used directly in Latex (as far as I know), so they have to be converted to a format that can. Inkscape is the most practical way we know to do that. In general, I think the 'easiest' format to convert to for sharing is HTML - that doesn't require any external programmes to help with the conversion. It may be a bit slow with large notebooks with a lot of embedded images, though. |
The same happens when trying to convert R notebooks with the IR Kernel to PDF. I usually also prefer HTML, but this does not work well with the R kernel either (the plots are sometimes cutoff, sometimes empty). |
For irkernel, try running options(jupyter.plot_mimetypes = c("text/plain", "image/png" )) # no more svg... This removes svg from the produces images... |
Should getting: |
Is there any error message from Inkscape that might indicate what went wrong? We raise the error in the title when the output file we asked Inkscape to create is not present. |
I apologize, I actually do not get that specific error, I am getting the error that I get no errors from Inkscape at all. The only error I get is
|
Yes, SVGs should be converted automatically. If it was failing to find inkscape, you would get a different error ("Inkscape executable not found"). The automatic conversion currently only works for SVG outputs, however - SVGs in markdown cells are not handled. |
Ahh. This is the issue then -- the I guess I can manually convert them to |
I have been hit by the same "missing inkscape" issue. Both |
As an alternative, when using At some point this will hopefully also be available on readthedocs.org, see readthedocs/readthedocs-docker-images#79. |
Would it be possible to update With the latest install of inkscape |
A few different issues are present on this thread. I'm going to close this issue in favour of some other individual issues to help us organize this better. If your SVG issue does not fall into one of the following issues, then please open a new issue. #885: Allow an alternative/fallback to inkscape. |
Not sure why I can not use jupyter nbconvert to get a pdf... and why there is a reference to a stand alone application Inkscape? I need to share my notebooks with collaborators in and easy way. Those folks think advanced programming is opening Excel. I can not save notebooks larger than 50mb, which eliminates all graphical output. So, I need a turnkey solution to output the entire NB, graphics and all, and send it to the other folks. What is the EASY-SIMPLE-SOLUTION_WORKABLE to share NBs that have embedded graphics and thus are 100mb or more?
The text was updated successfully, but these errors were encountered: