Hide all code when exporting notebook in Jupyter Lab to PDF

Viewed 5047

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?

1 Answers

This worked for me:

jupyter nbconvert path/to/your/ipynb --to=pdf --TemplateExporter.exclude_input=True

Related