简体   繁体   中英

Convert ipython notebooks to pdf on windows 8.1

Is there anyway where i can convert ipython notebooks to pdf on windows 8.1?

I found solutions, but only for Linux and macOS not for Windows.

You could install Latex for Windows ( http://latex-project.org/ftp.html ) and then do the conversion to Latex with a post to PDF that is mentioned in iPython's documentation . I believe the command is something like this:

ipython nbconvert --to latex --post PDF notebook.ipynb

Or you could convert to rst and then use the rst2pdf tool to convert that to PDF.

ipython nbconvert --to rst notebook.ipynb

Then once you have converted to rst, you can use rst2pdf like this:

rst2pdf.py notebook.rst -o notebook.pdf

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