I have a nicely-formatted ipython notebook complete with markdown cells and whatnot. I’m wondering what my options are in terms of exporting to a PDF file.
So far, I’ve been going to File > Print View and printing the resulting page to PDF with chromium’s “save to file” function. This technically works, but it has one major inconvenience: my figures, code and markdown cells are often split by page breaks.
Are there any other solutions for explort such that I can have one continuous PDF file?
EDIT: I ran into nbconvert, but when I keep getting a “file not found” error. Anybody have any luck with nbconvert? The documentation claims to support exporting to PDF, but when I ran nbconvert.py -f pdf, the error message suggested that the PDF format was not, in fact, supported.
you cannot directly convert an ipynb into a pdf, so the error message is right!
You need to first convert it into latex:
nbconvert.py -f latex your_nb.ipynband then usepdflatex your_nb.texto build the pdf file.Hope it helps.