Let's switch this to the slightly clearer (and identical, thanks to [De Morgan](http://en.wikipedia.org/wiki/DeMorgan%27s_Law)):

    if not (cell.cell_type == u'code' and not c.input.strip())