Skip to content
kirbs- edited this page Feb 26, 2017 · 3 revisions

Hide_code adds HTML, PDF via HTML, and PDF via Latex export options to Jupyter. Exporting respects hide_code's code, prompt, and output selections; these must be saved prior to exporting.

Notes

  • Exporting to PDF via HTML requires wkhtmltopdf!
  • Exporting to PDF via Latex requires a Tex library.

Via notebook

To export via HTML or PDF simply click on the respective button. image4.1

Via nbconvert command line

To export via nbconvert command line, nbconvert 4.2 or later is required. Hide_code adds three export options to nbconvert, hide_code_html, hide_code_pdf, and hide_code_latexpdf.

Note: PDF exporting via command line uses nbconvert's built in PDF exporter.

jupyter nbconvert --to hide_code_html notebook_to_convert.ipynb

jupyter nbconvert --to hide_code_pdf notebook_to_convert.ipynb

jupyter nbconvert --to hide_code_latexpdf notebook_to_convert.ipynb

Clone this wiki locally