diff --git a/IPython/core/inputsplitter.py b/IPython/core/inputsplitter.py index 1b3fa02..c43014f 100644 --- a/IPython/core/inputsplitter.py +++ b/IPython/core/inputsplitter.py @@ -809,6 +809,13 @@ class IPythonInputSplitter(InputSplitter): self._is_complete = last_blank(last_block) and lines.isspace() return self._is_complete + def transform_cell(self, cell): + """Process and translate a cell of input. + """ + self.reset() + self.push(cell) + return self.source_reset() + def push(self, lines): """Push one or more lines of IPython input.