MJA
MJA

Reputation: 417

Hide all code when exporting notebook in Jupyter Lab to PDF

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

Answers (1)

fbonilla62
fbonilla62

Reputation: 101

This worked for me:

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

Upvotes: 10

Related Questions