egibbons
(Eduardo Gibbons Diaz-Rato)
July 20, 2021, 9:23am
1
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
etejedor
(Enric Tejedor Saavedra)
July 21, 2021, 8:54am
2
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
)
egibbons
(Eduardo Gibbons Diaz-Rato)
July 22, 2021, 7:46am
3
Hi,
Thank you for your reply. I will test this with the correct configuration.
dalvesde
(Diogo Castro)
June 9, 2023, 10:31am
4
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