简体   繁体   中英

Cannot convert jupyter notebook to pdf

I get the following error when I try to convert jupyter notebook to pdf. 在此处输入图片说明 I'd appreciate your help. Thank you.

sudo apt-get install texlive-xetex 

可能会解决您的问题

As the error says, you need to install xelatex and add it to your path so that the conversion can take place.

Can you follow the instruction here to install xelatex onto your system. Once done check in your cmd line that it is installed by doing the following,

latex --version

If this shows the version then it should work fine.

Edit:

Working Solution:

Ok. Thank you so much. It worked. I downloaded MikTex from (miktex.org/download). I made sure it is on the same path. Ran your command 'xetex --version' to make sure it's in the same path. Went back to jupyter notebook and was able to convert it to pdf. Thank you.

Possible Solution:

Go here go to 'JupyterLab' which will allow you to open jupyter notebooks. Once opened( it is slow, so be patient) open your local file and then simply export it to pdf. This will not require any dependencies like on local side.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM