| 65 | |
| 66 | |
| 67 | class IPythonValidator(PythonValidator): |
| 68 | def __init__(self, *args, **kwargs): |
| 69 | super().__init__(*args, **kwargs) |
| 70 | self.isp = TransformerManager() |
| 71 | |
| 72 | def validate(self, document: Document) -> None: |
| 73 | document = Document(text=self.isp.transform_cell(document.text)) |
| 74 | super().validate(document) |
| 75 | |
| 76 | |
| 77 | def create_ipython_grammar(): |