Convert ipynb to pdf in Jupyter

后端 未结 9 1280
臣服心动
臣服心动 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:14

    Here is the full solution that worked for me (for Mac).

    brew cask install mactex

    $ cd ~/

    $ touch .bash_profile

    This will open the bash profile on TextEditor

    $ open -e .bash_profile

    Paste the following to the top and save

    export PATH="/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin:$PATH" 
    

    Close any notebook you have and reopen it

    Here is the notebook explaining it step by step: https://github.com/ybaktir/notes/blob/master/Convert%20Jupyter%20Notebook%20to%20Pdf.ipynb

提交回复
热议问题