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

Function transform

IPython/core/tests/test_inputtransformer.py:12–16  ·  view source on GitHub ↗
(inp)

Source from the content-addressed store, hash-verified

10def transform_and_reset(transformer):
11 transformer = transformer()
12 def transform(inp):
13 try:
14 return transformer.push(inp)
15 finally:
16 transformer.reset()
17
18 return transform
19

Callers 4

transform_cellMethod · 0.85
transform_cellMethod · 0.85
check_completeMethod · 0.85
timeitMethod · 0.85

Calls 2

pushMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected