Convert ipynb to pdf in Jupyter

后端 未结 9 1250
臣服心动
臣服心动 2021-01-31 08:23

I am new to ipython notebook, and I would like to convert my ipynb to pdf. But I get the following error when I try to Download as PDF via LaTex.

nbconvert faile         


        
9条回答
  •  孤城傲影
    2021-01-31 09:00

    A simple and surprisingly good solution is to print the notebook to pdf through the browser with ctrl+p. Just make sure your plots and figures are not on interactive mode otherwise they will not be displayed (set them to %matplotlib inline).

    Exporting jupyter notebooks through latex is quite troublesome and takes a lot of tinkering to get something remotely close to publish ready. When I absolutely need publication quality I do it on a latex editor, but this tutorial goes in great length about doing it on jupyter.

    A few useful tips to get better results:

    • Higher resolution plots
    • Hide your code-cells from the pdf
    • Take a look at these extensions to improve your jupyter documents

提交回复
热议问题