MCPcopy Create free account
hub / github.com/ipython/ipython / transform_cell

Method transform_cell

IPython/core/inputsplitter.py:669–678  ·  view source on GitHub ↗

Process and translate a cell of input.

(self, cell)

Source from the content-addressed store, hash-verified

667 return super(IPythonInputSplitter, self).push_accepts_more()
668
669 def transform_cell(self, cell):
670 """Process and translate a cell of input.
671 """
672 self.reset()
673 try:
674 self.push(cell)
675 self.flush_transformers()
676 return self.source
677 finally:
678 self.reset()
679
680 def push(self, lines:str) -> bool:
681 """Push one or more lines of IPython input.

Callers

nothing calls this directly

Calls 3

resetMethod · 0.95
pushMethod · 0.95
flush_transformersMethod · 0.95

Tested by

no test coverage detected