In this recipe, you'll learn how to export an IPython Notebook to a PDF file. There are two methods which you can try. If the first works for you, then great, but if it doesn't, then try Method 2.
Before attempting a conversion to PDF, add the following line to your ~/.jupyter/jupyter_nbconvert_config.py
file. You may need to create this file:
c.ExecutePreprocessor.timeout = 300
This will ensure that a PDF can be generated, and it won't timeout while running the notebook, which can happen, especially if you're importing a few million rows to run through an analysis. Depending on how much data your notebook needs to import before running, you may need to increase or decrease the timeout value.
First, install Pandoc (http://pandoc.org/installing.html). Pandoc is a swiss-army knife for converting files from one markup format into another, and can be installed on Windows, Mac OS X, and Linux.