If you've stumbled here from IPython 3.2.0 on Windows on Anaconda (I can't see why this wouldn't work on unix systems or on a regular ipython install, but I have not tested those scenarios myself) - this method is what's worked for me. Use TorokLev's latex template (say pdf_nocode.tplx) and then create a python file (say pdf_nocode.py) and paste the following:
c = get_config()
#Export all the notebooks in the current directory to the sphinx_howto format.
c.NbConvertApp.notebooks = ['*.ipynb']
c.NbConvertApp.export_format = 'pdf'
c.TemplateExporter.template_path = ['.', r"C:\your\path\to\tplx\folder"]
c.Exporter.template_file = 'pdf_nocode'
Finally, your command will be:
ipython nbconvert --to=pdf --config C:\your\path\to\pdf_nocode.py
This will also generate the images as support files, if you want to suppress that output (I use mostly plots so this may not work for everyone), you can either modify
site-packages\IPython\nbconvert\exporters\pdf.py
by adding this code:
...
def from_notebook_node(self, nb, resources=None, **kw):
...
# convert output extension to pdf
# the writer above required it to be tex
resources['output_extension'] = '.pdf'
#The following suppresses the support files, so you may
#end up removing other useful files you wanted to include
del resources['outputs']
...
or by subclassing PDFExporter from pdf.py and adding your exporter in exporter_map to:
site-packages\IPython\nbconvert\exporters\export.py
If you subclass it does have a side benefit of you being able to add your own entry to the notebook menu in:
site-packages\IPython\html\static\notebook\js\menubar.js