I just tried this jupyter nbconvert --to pdf --no-input notebook.ipynb And it is a really convenient way to remove the code cells from the PDF. I thought it would be really nice if something like this would also exist for table of content. E.g. : jupyter nbconvert --to pdf --no-input --with-toc notebook.ipynb