Unable to download any Jupyter notebooks as PDF

Hello there, I’ve tried to use the option to download the Jupyter Notebooks as PDFs, but I repeatedly get errors.

Jupyter Notebook
500 : Internal Server Error
The error was:

nbconvert failed: PDF creating failed, captured latex output:
Failed to run “[‘xelatex’, ‘./notebook.tex’, ‘-quiet’]” command:

Hi @dt_student ,

Yes, There is problem downloading the lab as pdf format, you can download the lab as HTML file instead.

Thanks for getting back to me. When you download the lab as a HTML file you don’t have any of the images which has the bulk of the interesting material.

Is there some way to fix this? We are paying a monthly fee to access this material, so it would be very nice to get a permanent archive :slight_smile:

Hi @dt_student ,

The mentors here have nothing to do with the commercial side of the organisation. We are just volunteers giving back to the community. I am not sure what exactly is causing the problem. But I can report it to the course staff.

In the mean time, if you would like to keep a copy of your lab assignment with all the data and support functions, you can :
At the top of the opened notebook, click on Lab Files at the top right, and click download all files when a new pane is opened on the right.

If you want a permanent archive, you are much better off to download the notebook in its original form (the ipynb file), which is a file written in JSON. With the method that Kin points out, you get all the files associated with the notebook as well, so that you could even run it in your own environment later, if you wanted to (although there is quite a lot of software you would need to install in order to do that). If you have it in PDF or HTML form, then it is only readable, but not executable. There is also a way to upload all the files and run them on Google Colab. Here’s a thread from mentor Saif about how to do that.

2 Likes

Thank you! I didn’t realize there were both volunteers and the commercial side. I appreciate your help with this :slight_smile:

Thank you very much, I’ll give this a try.

Hi, and welcome to the community! Can you tell us in which lab you got that error? It seems like it’s only affecting some of the labs. So far, I’m able to replicate it in the Gradient Descent notebook. The error log seems to point to a problem in one of the equations and we’ll see if fixing that will make the download work.

But I hope Kin and Paul’s suggestion to download the lab files would be more useful for you. Thank you for reporting this!

Thanks, here are the ones that I found that seem to have the error when generating a PDF. I’ve downloaded the lab files.

  1. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  2. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  3. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  4. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  5. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  6. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  7. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  8. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  9. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  10. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera
  11. Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera

I was able to download a few as PDFs and I see that the tables of the generated PDFs are not correct (not sure how easy that is to fix)

I saw that in the notebook the tables look like this:

And this is what the PDF looks like:

Hello DLAI,

There is a workaround by downloading the HTML and exporting to PDF.

I attached the assignment for C4W1
C4_W1_Assignment.pdf (864.5 KB)