##// END OF EJS Templates
Merge pull request #4504 from takluyver/inputtransformer-syntaxerror...
Merge pull request #4504 from takluyver/inputtransformer-syntaxerror Allow input transformers to raise SyntaxError, if they consider a line of input code invalid. The main motivating use case for this was Sage, this is a continuation of @vbraun's gh-4089. For background, see http://python.6.x6.nabble.com/Raising-a-SyntaxError-in-InputTransformer-td5027773.html. Also, took advantage of the opportunity to refactor and simplify `run_cell` a bit.

File last commit:

r14988:7aae6ea8
r14990:07072a49 merge
Show More
incompat-inputsplitter-source-raw-reset.rst
6 lines | 316 B | text/x-rst | RstLexer
/ docs / source / whatsnew / pr / incompat-inputsplitter-source-raw-reset.rst
Thomas Kluyver
Document changes to input transformers
r14988 * :class:`IPython.core.inputsplitter.IPythonInputSplitter` no longer has a method
``source_raw_reset()``, but gains :meth:`~IPython.core.inputsplitter.IPythonInputSplitter.raw_reset`
instead. Use of ``source_raw_reset`` can be replaced with::
raw = isp.source_raw
transformed = isp.source_reset()