PDF generation without code cells

Hi,

Scrolling through previous posts on PDF saving I have not been able to find how to export a notebook without the code cells. I would only like to have markdown cells and outputs in the generated PDF file if possible.

Thank you in advance,

Eddie

Hi,

I think you can use nbconvert for that:

https://nbconvert.readthedocs.io/en/latest/config_options.html

It’s just a matter of finding the right configuration options (e.g. PDFExporter.exclude_code_cell)

Hi,

Thank you for your reply. I will test this with the correct configuration.

Hi,
This thread is old already, but I got the impression this didn’t get a final solution.
So here it is:

jupyter nbconvert --to pdf --no-input Untitled.ipynb

Cheers,
Diogo