Pdf export in jupyter notebook not working

2,501 views
Skip to first unread message

vigneshwer dhinakaran

unread,
Aug 29, 2016, 11:28:21 AM8/29/16
to Project Jupyter
Hi Team,

There are few problems I am facing with the export pdf function.

The PDF is getting generated but,

1. The markdown code is coming as such in the final pdf, the output is not populated in the pdf. ex: HTML output is not coming and html code is what's coming in the pdf format.

2. When the cell length is more than the width of the window (ie it's a big line of code), the pdf generated cuts the code which is not visible in the display.

How do i rectify these PDF export errors?

Thanks
@dvigneshwer

Doug Blank

unread,
Aug 29, 2016, 11:32:47 AM8/29/16
to jup...@googlegroups.com
Just encountered these this morning. Some notes:

1. all HTML in Mardown seems to be stripped, even <br>, when going to PDF

2. I had to remove long lines in Markdown tables, else it wouldn't wrap

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/f04cf8a8-27f9-4279-946b-f283dce710d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vigneshwer dhinakaran

unread,
Aug 29, 2016, 11:44:25 AM8/29/16
to Project Jupyter
I am checking out all the resources out there, will post incase anything works out.



On Monday, 29 August 2016 21:02:47 UTC+5:30, Doug Blank wrote:
Just encountered these this morning. Some notes:

1. all HTML in Mardown seems to be stripped, even <br>, when going to PDF

2. I had to remove long lines in Markdown tables, else it wouldn't wrap
On Mon, Aug 29, 2016 at 11:28 AM, vigneshwer dhinakaran <dvign...@gmail.com> wrote:
Hi Team,

There are few problems I am facing with the export pdf function.

The PDF is getting generated but,

1. The markdown code is coming as such in the final pdf, the output is not populated in the pdf. ex: HTML output is not coming and html code is what's coming in the pdf format.

2. When the cell length is more than the width of the window (ie it's a big line of code), the pdf generated cuts the code which is not visible in the display.

How do i rectify these PDF export errors?

Thanks
@dvigneshwer

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

Zubin "CrunchData"

unread,
Aug 30, 2016, 5:06:53 AM8/30/16
to Project Jupyter
Hello, I am having the same problem. HTML export is beautiful.  PDF export is a mess.  I compare this to using R markdown in RSTUDIO which generates perfect PDF files.   This is a serious issue with Jupyter.  If we can't export nicely done PDF files, then a key target PDF is unavailable to us.  There must be a solution?  I am surprised there is not more of an uproar from business and academic users on the current PDF export capability..  

Fernando Perez

unread,
Aug 30, 2016, 3:08:45 PM8/30/16
to Project Jupyter
Hi Zubin,

On Tue, Aug 30, 2016 at 2:06 AM, Zubin "CrunchData" <nat...@gmail.com> wrote:
Hello, I am having the same problem. HTML export is beautiful.  PDF export is a mess.  I compare this to using R markdown in RSTUDIO which generates perfect PDF files.   This is a serious issue with Jupyter.  If we can't export nicely done PDF files, then a key target PDF is unavailable to us.  There must be a solution?  I am surprised there is not more of an uproar from business and academic users on the current PDF export capability..  

This is something we certainly want to improve, and with Mike Pacer joining the team to focus on the publication/document aspects of Jupyter, we'll have cycles and expertise available.  It would be very helpful if you could file issues at 


with the specific conversion problems you're experiencing.  In particular, if you have equivalent/similar Rmd examples that work well, please post them in the issue.
 
On Monday, August 29, 2016 at 11:28:21 AM UTC-4, vigneshwer dhinakaran wrote:
Hi Team,

There are few problems I am facing with the export pdf function.

The PDF is getting generated but,

1. The markdown code is coming as such in the final pdf, the output is not populated in the pdf. ex: HTML output is not coming and html code is what's coming in the pdf format.

2. When the cell length is more than the width of the window (ie it's a big line of code), the pdf generated cuts the code which is not visible in the display.

How do i rectify these PDF export errors?

Thanks
@dvigneshwer

Same here, @dvigneswher: could I ask you to post these as nbconvert issues?  We really want to improve the capabilities and ease of use of nbconvert as a publication tool, so concrete problems like these that are holding users back are valuable to us.

Cheers,

f


--
Fernando Perez (@fperez_org; http://fperez.org)
fperez.net-at-gmail: mailing lists only (I ignore this when swamped!)
fernando.perez-at-berkeley: contact me here for any direct mail

Avinash Joshi

unread,
Aug 31, 2016, 7:33:29 AM8/31/16
to Project Jupyter
Hi,

I have faced similar issues as well. Attaching a sample output from RStudio using RMarkdown and Jupyter using R kernel. Added a cell on top with html code to highlight the first problem. Also attached the snapshot of the notebook.

Notice the indentation offset in the Jupyter export to pdf.
Jupyter_Notebook_Snapshot.png
RStudio_test.pdf
Jupyter_testR.pdf

Ismaël Lemhadri

unread,
Oct 23, 2017, 8:38:22 PM10/23/17
to Project Jupyter
I am trying to convert a notebook using the R kernel and faces similar trimming issues in the pdf. markdown text appears just fines but code is cut.
Any news on this?

ezhi...@gmail.com

unread,
Feb 21, 2018, 6:26:20 AM2/21/18
to Project Jupyter
We convert Jupyter to HTML, then print HTML using virtual PDF printer - this works.
Reply all
Reply to author
Forward
0 new messages