Output template .json to hide code cells [newby]

I’m new to the nbconvert6 template system and am trying to create a template that excludes all code cells.

I’ve written the following conf.json:

{
  "base_template": "lab",
  "mimetypes": {
    "text/html": true
  },
  "HTMLExporter" :
  { "exclude_code_cell" : true,
	"enabled" : true
  }
  
}

When running
jupyter nbconvert --to html demo.ipynb --template code_hidden

This runs without errors, but the produced .html file does not have the code cells removed.

Probably missing something very stupid… any suggestions?

Fixed, see : nbformat version requirement · Issue #69 · connorferster/handcalcs (github.com)

1 Like