def wantFile(self, filename):
        """
        filter files to those that match nosebook-match
        """

        log.info("considering %s", filename)

        if self.testMatch(filename) is None:
            return False

        nb = self.readnb(filename)

        for cell in self.codeCells(nb):
            return True

        log.info("no `code` cells in %s", filename)

        return False
def wantFile ( self , filename ) : log . info ( "considering %s" , filename ) if self . testMatch ( filename ) is None : return False nb = self . readnb ( filename ) for cell in self . codeCells ( nb ) : return True log . info ( "no `code` cells in %s" , filename ) return False
filter files to those that match nosebook-match