Reputation: 53
I know this question has been asked multiple times like this but none of the solutions worked for me, I think most solutions out there do not work for Mac.
I'm trying to export a jupyter notebook file to pdf using nbconvert and I get the error
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.
I tried
!export PATH=/Library/TeX/texbin:$PATH
!jupyter nbconvert your_notebook.ipynb --to pdf
which is also the solution proposed here but the problem still persists. I am using Jupyter Notebook on VS Code which is installed through conda. Even if I open the Notebook through conda and open it in a web browser I get the same issue.
Upvotes: 0
Views: 6758