0

It's possible to export a Jupyter notebook using nbconvert and by passing the -TemplateExporter.exclude_input=True argument, one can exclude all input cells.

How can I configure nbconvert to exclude input all cells, except for cells tagged with e.g. show_input?

I know I can do the reverse (export all cells, but hide input cells when they have a specific tag) by specifying the tag in the --TagremovePreprocessor.remove_input_tags=['hide_input'] argument, but as 99% of the cells need to be hidden it's a tedious job.

My final goal is to create a Jupyter notebook and export it to Reveal.js slides. The slides should show output cells only, except for 1-2 cells where I define a Python function that should also be shown.

Saaru Lindestøkke
  • 1,274
  • 1
  • 19
  • 47

0 Answers0