'Reset the input buffer and associated state.'

def reset(self):

    super(IPythonInputSplitter, self).reset()
    self._buffer_raw[:] = []
    self.source_raw = ''
    self.transformer_accumulating = False
    self.within_python_line = False
    for t in self.transforms:
        try:
            t.reset()
        except SyntaxError:
            pass
