# Unable to download any Jupyter notebooks as PDF

**URL:** <https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119>\
**Category:** Supervised ML: Regression and Classification\
**Tags:** week-module-1\
**Created:** [March 21, 2023, 2:46pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119 "2023-03-21T14:46:17Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![dt\_student](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dt\_student](https://dlai.staged-by-discourse.com/u/dt_student)\
**Post date:** [March 21, 2023, 2:46pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/1 "2023-03-21T14:46:17Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Kic](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/kic/32/76339_2.png) [@Kic](https://dlai.staged-by-discourse.com/u/Kic)\
**Post date:** [March 21, 2023, 3:05pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/2 "2023-03-21T15:05:54Z")

</div>

Hi @dt_student ,

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

---

<div class="post-metadata">

**Author:** ![dt\_student](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dt\_student](https://dlai.staged-by-discourse.com/u/dt_student)\
**Post date:** [March 21, 2023, 3:37pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/3 "2023-03-21T15:37:12Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![Kic](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/kic/32/76339_2.png) [@Kic](https://dlai.staged-by-discourse.com/u/Kic)\
**Post date:** [March 21, 2023, 4:03pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/4 "2023-03-21T16:03:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![paulinpaloalto](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/paulinpaloalto/32/187_2.png) [@paulinpaloalto](https://dlai.staged-by-discourse.com/u/paulinpaloalto)\
**Post date:** [March 21, 2023, 4:10pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/5 "2023-03-21T16:10:25Z")

</div>

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](http://dlai.staged-by-discourse.com/t/coding-environment/290232/5) from mentor Saif about how to do that.

---

<div class="post-metadata">

**Author:** ![dt\_student](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dt\_student](https://dlai.staged-by-discourse.com/u/dt_student)\
**Post date:** [March 21, 2023, 4:12pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/6 "2023-03-21T16:12:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dt\_student](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dt\_student](https://dlai.staged-by-discourse.com/u/dt_student)\
**Post date:** [March 21, 2023, 4:12pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/7 "2023-03-21T16:12:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chris.favila](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/chris.favila/32/126338_2.png) [@chris.favila](https://dlai.staged-by-discourse.com/u/chris.favila)\
**Post date:** [March 21, 2023, 11:10pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/8 "2023-03-21T23:10:42Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![dt\_student](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dt\_student](https://dlai.staged-by-discourse.com/u/dt_student)\
**Post date:** [March 22, 2023, 11:13pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/9 "2023-03-22T23:13:52Z")

</div>

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](https://www.coursera.org/learn/machine-learning/ungradedLab/lE1al/optional-lab-gradient-descent/lab?path=%2Fnbconvert%2Fpdf%2FC1_W1_Lab04_Gradient_Descent_Soln.ipynb%3Fdownload%3Dtrue)
2. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/kIf25/optional-lab-feature-scaling-and-learning-rate/lab?path=%2Fnbconvert%2Fpdf%2FC1_W2_Lab03_Feature_Scaling_and_Learning_Rate_Soln.ipynb%3Fdownload%3Dtrue)
3. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/Xat0X/optional-lab-feature-engineering-and-polynomial-regression/lab?path=%2Fnbconvert%2Fpdf%2FC1_W2_Lab04_FeatEng_PolyReg_Soln.ipynb%3Fdownload%3Dtrue)
4. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/programming/jsE7w/week-2-practice-lab-linear-regression/lab?path=%2Fnbconvert%2Fpdf%2FC1_W2_Linear_Regression.ipynb%3Fdownload%3Dtrue)
5. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/9LMHw/optional-lab-sigmoid-function-and-logistic-regression/lab?path=%2Fnbconvert%2Fpdf%2FC1_W3_Lab02_Sigmoid_function_Soln.ipynb%3Fdownload%3Dtrue)
6. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/ULi82/optional-lab-decision-boundary/lab?path=%2Fnbconvert%2Fpdf%2FC1_W3_Lab03_Decision_Boundary_Soln.ipynb%3Fdownload%3Dtrue)
7. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/pOtDs/optional-lab-logistic-loss/lab?path=%2Fnbconvert%2Fpdf%2FC1_W3_Lab04_LogisticLoss_Soln.ipynb%3Fdownload%3Dtrue)
8. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/m9laL/optional-lab-cost-function-for-logistic-regression/lab?path=%2Fnbconvert%2Fpdf%2FC1_W3_Lab05_Cost_Function_Soln.ipynb%3Fdownload%3Dtrue)
9. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/KtxCL/optional-lab-gradient-descent-for-logistic-regression/lab?path=%2Fnbconvert%2Fpdf%2FC1_W3_Lab06_Gradient_Descent_Soln.ipynb%3Fdownload%3Dtrue)
10. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/ungradedLab/36A9A/optional-lab-regularization/lab?path=%2Fnbconvert%2Fpdf%2FC1_W3_Lab09_Regularization_Soln.ipynb%3Fdownload%3Dtrue)
11. [Coursera | Online Courses & Credentials From Top Educators. Join for Free | Coursera](https://www.coursera.org/learn/machine-learning/programming/vPfeK/week-3-practice-lab-logistic-regression/lab?path=%2Fnbconvert%2Fpdf%2FC1_W3_Logistic_Regression.ipynb%3Fdownload%3Dtrue)

---

<div class="post-metadata">

**Author:** ![dt\_student](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@dt\_student](https://dlai.staged-by-discourse.com/u/dt_student)\
**Post date:** [March 22, 2023, 11:16pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/10 "2023-03-22T23:16:38Z")

</div>

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:

 ![Screen Shot 2023-03-22 at 19.15.37](https://global.discourse-cdn.com/dlaistaging/original/3X/7/7/77754cd43e422e289df71a03d8cd21b620de51a7.png)

And this is what the PDF looks like:

 ![Screen Shot 2023-03-22 at 19.15.32](https://global.discourse-cdn.com/dlaistaging/original/3X/3/8/38fb285a263de9a356887aecec3b1b81b7a05a5d.png)

---

<div class="post-metadata">

**Author:** ![dlphsrle7](https://sea1.discourse-cdn.com/dlaistaging/user_avatar/dlai.staged-by-discourse.com/dlphsrle7/32/40008_2.png) [@dlphsrle7](https://dlai.staged-by-discourse.com/u/dlphsrle7)\
**Post date:** [March 27, 2023, 8:53pm UTC](https://dlai.staged-by-discourse.com/t/unable-to-download-any-jupyter-notebooks-as-pdf/294119/11 "2023-03-27T20:53:35Z")

</div>

Hello DLAI,

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

I attached the assignment for C4W1  
[C4\_W1\_Assignment.pdf](https://dlai.staged-by-discourse.com/uploads/short-url/jrqbpGIeQFqVuGZa3CUrTv2KuMN.pdf) (864.5 KB)
