core

def ignore_(cell):
    "Ignore cell from output"
    del(cell['source'])

source

ignore_

 ignore_ (cell)

Ignore cell from output

This follows the hide processor implementation in nbdev. When a function is given as a processor, if its name ends with _, its name will be used to match the directive for that action (this is implemented in NBProcessor), so we can name our function ignore_ in order for it to match our directive “#| ignore”.

In order for this processor to be loaded, we need to add it to procs in settings.ini, which is loaded by FilterDefaults.

All cells with this directive will then be removed when generating docs.