So, i've been trying to save a jupyter notebook as PDF but i just can't figure out how to do this. The first thing i try is from the file menu just download as PDF, but doing that results in:
nbconvert failed: PDF creating failed
the next thing i try is try to do the conversion from the Command Prompt like this
$ ipython nbconvert --to latex --post PDF MyNotebook.ipynb
but again, this results in an error message
ImportError: No module named 'PDF'
and if i try
$ ipython nbconvert --to latex MyNotebook.ipynb
this results in
IPython.nbconvert.utils.pandoc.PandocMissing: Pandoc wasn't found:
Please check that pandoc is installed
if i try to install pandoc (pip install pandoc
), this gives me
ImportError: No module named 'ConfigParser'
and this is where i get stuck because i just don't know what else to do. Anyone have idea how to fix whatever is wrong?
To make it work, I installed latex, typical latex extra, and pandoc.
With ubuntu:
sudo apt-get install texlive texlive-latex-extra pandoc
it takes some times: several 100 Mb to download. I read somewhere that you can use --no-install-recommends
for texlive and extra to reduce to the dl.