-
Notifications
You must be signed in to change notification settings - Fork 235
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
Better support for PDF reports #672
Comments
So after some digging, you can use .pdf, we're using behind the hood in nbconvert, you'll just need to add more dependencies. You'll need to install pandoc and Tex: https://nbconvert.readthedocs.io/en/latest/install.html#installing-pandoc Then you can just change the extension to Let me know if that works for you? |
Hi,
Thanks for the quick response.
The method you suggested works, but ignores in the output pdf the images that I added with
<img src="path/to/Image" width="1000"/>
I know that in most cases people do not add still images, but sometimes I prepare reports which include both the ML pipeline (code) and .png coming from the client for example.
For this particular case, I believe wkhtmltopdf is still the better option
Best,
Raffaele
Da: Ido M ***@***.***>
Inviato: martedì 22 marzo 2022 14:11
A: ploomber/ploomber ***@***.***>
Cc: Raffaele Olmeda ***@***.***>; Author ***@***.***>
Oggetto: Re: [ploomber/ploomber] Reports in pdf (Issue #672)
So after some digging, you can use .pdf, we're using behind the hood in nbconvert, you'll just need to add more dependencies. You'll need to install pandoc and Tex: https://nbconvert.readthedocs.io/en/latest/install.html#installing-pandoc
Then you can just change the extension to .pdf
Let me know if that works for you?
—
Reply to this email directly, view it on GitHub<#672 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXMPBNCXCFMNYXBEV3DLXTDVBHBHDANCNFSM5RKK2CUQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Thanks for your feedback! It makes sense to support different PDF converters, we'll add this to the roadmap. in the meantime, my recommendation is to output |
This second approach work, but only if I change
<img src="path/to/Image" width="1000"/>
To
![Name](path/to/Image)
Da: Eduardo Blancas ***@***.***>
Inviato: martedì 22 marzo 2022 15:31
A: ploomber/ploomber ***@***.***>
Cc: Raffaele Olmeda ***@***.***>; Author ***@***.***>
Oggetto: Re: [ploomber/ploomber] Better support for PDF reports (Issue #672)
Thanks for your feedback! It makes sense to support different PDF converters, we'll add this to the roadmap. in the meantime, my recommendation is to output .ipynb in your pipeline.yaml and then convert them to PDF using nbconvert
—
Reply to this email directly, view it on GitHub<#672 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AXMPBNB3M3R54JFRU4VOTE3VBHKTDANCNFSM5RKK2CUQ>.
You are receiving this because you authored the thread.Message ID: ***@***.******@***.***>>
|
Great, does this solve the issue? If so, I'll close this and open a new one so we keep in mind to add support for other PDF converters. |
Yes it does, just keeping in mind that in some cases the HTML format for inserting images could be the best choice |
agree! thanks for your feedback, keep an eye on #675 - we'll work on this soon :) |
Hello,
at the moment is only possible to have the report of a task in .ipynb/.html format.
It would also be useful to have them in .pdf.
I personally use wkhtmltopdf for the .html/.pdf conversion, I do not know if it is useful.
Best,
Raffaele
The text was updated successfully, but these errors were encountered: