def preprocess(
        self, nb: "NotebookNode", resources: dict
    ) -> Tuple["NotebookNode", dict]:
        """Preprocess the entire Notebook."""
        for index, cell in enumerate(nb.cells):
            if "## Solution" in cell.source:
                nb.cells[index + 1].source = ""

        return nb, resources
def preprocess ( self , nb : "NotebookNode" , resources : dict ) -> Tuple [ "NotebookNode" , dict ] : for index , cell in enumerate ( nb . cells ) : if "## Solution" in cell . source : nb . cells [ index + 1 ] . source = "" return nb , resources
Preprocess the entire Notebook.