Reputation: 417
When I export a notebook to PDF in jupyter lab i cannot hide the code cells in the output. (Like 'View > Collapse All Code')
Is there a built in functionality to hide code in the output PDF? For example by using the cell Metadata?
Upvotes: 5
Views: 6793
Reputation: 101
This worked for me:
jupyter nbconvert path/to/your/ipynb --to=pdf --TemplateExporter.exclude_input=True
Upvotes: 10