For many presentations, you may not want the code from input cells to
be visible. I use the template posted on @damian_vila's
blog. This
allows you to hide the input slides, but clicking on the output cell
toggles the input cell. This makes it really fun in presentations, if
someone asks how you did something, simply click on the figure/table
to reveal the code!
To use a template to compile your slides:
Create a directory where you will store your templates
Add this directory to the list:
c.HTMLExporter.template_path
in ~.ipython/profile_default/ipython_nbconvert_config.py
Use the template when compiling your slides. If you named the
tamplate my_template.tpl, and stored it in a directory listed in the
list below, you can do: