I want to run the ipython notebook and save the outputs as pdf so that I produce reports without the code snippet. The behaviour I've observed is that the code is alway included. Any ideas?
Asked
Active
Viewed 84 times
0
-
You may be interested in [this answer](http://stackoverflow.com/questions/27934885/how-to-hide-code-from-cells-in-ipython-notebook-visualized-with-nbviewer). It works for HTML, I need to install some stuff to test with PDFs but I'm doing that now. – Wolf Aug 21 '15 at 12:53
-
No, sorry, that did not eliminate code hunks from the generated PDF. – Wolf Aug 21 '15 at 13:55
-
You'd need to write a custom template for nbconvert: http://nbconvert.readthedocs.org/en/latest/customizing.html – Thomas K Aug 22 '15 at 00:52