+4 votes
19.1k views
asked in Python by (230 points)  
retagged by
  

1 Answer

+2 votes
answered by (115k points)  
edited by

I assume you want to use the following menu option:

 

You need to install a LaTeX engine (as it is instructed) and pandoc library to be able to use the menu for pdf conversion:

Please install one of the LaTeX engine distributions as it is instructed in this link.

In your Terminal (mac/linux) or Command prompt (windows), you should install pandoc as follows:

conda install -c conda-forge pandoc 

Please take a look at the following video for more information:

Note: If pandoc does not work for you, you can also convert Jupyter Notebook to PDF using any browser.  For example for Google Chrome look at the following video:

commented by (230 points)  
Thanks Prof.
commented by (100 points)  
reshown by
+1
HI , i ran this command and installed the pandoc but got the following error message

500 : Internal Server Error
The error was:

nbconvert failed: xelatex not found on PATH, if you have not installed xelatex you may need to do so. Find further instructions at https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex.
commented by (115k points)  
Please install one of the LaTeX engine distributions as it is instructed in the link. Afterward, try to restart Jupyter, and hopefully, that will start working.

https://nbconvert.readthedocs.io/en/latest/install.html#installing-tex
...