def split_input_output(self, text):
        """Split code into input lines and output lines, according to the
        input and output prompt templates."""
        lines = _to_lines(text)
        i = 0
        for line in lines:
            if _starts_with_regex(line, self.input_prompt_regex):
                i += 1
            else:
                break
        return lines[:i], lines[i:]
Split code into input lines and output lines, according to the
        input and output prompt templates.
ipymd/core/prompt.py