##// END OF EJS Templates
Add a transform_cell convenience method to the inputsplitter object.
Fernando Perez -
Show More
@@ -809,6 +809,13 b' class IPythonInputSplitter(InputSplitter):'
809 809 self._is_complete = last_blank(last_block) and lines.isspace()
810 810 return self._is_complete
811 811
812 def transform_cell(self, cell):
813 """Process and translate a cell of input.
814 """
815 self.reset()
816 self.push(cell)
817 return self.source_reset()
818
812 819 def push(self, lines):
813 820 """Push one or more lines of IPython input.
814 821
General Comments 0
You need to be logged in to leave comments. Login now