##// END OF EJS Templates
Merge pull request #13357 from Carreau/nuke-lib.inputhook...
Merge pull request #13357 from Carreau/nuke-lib.inputhook Remove all the lib/inputhook logic and related files.

File last commit:

r26686:4f685f1e
r27232:e4474874 merge
Show More
traceback-improvements.rst
39 lines | 1.1 KiB | text/x-rst | RstLexer
/ docs / source / whatsnew / pr / traceback-improvements.rst
martinRenou
Improve error tracebacks so that it shows the cell prompts
r26685 Traceback improvements
======================
Blazej Michalik
Fixed whatsnew entry RST warnings
r26686 Previously, error tracebacks for errors happening in code cells were showing a hash, the one used for compiling the Python AST::
martinRenou
Improve error tracebacks so that it shows the cell prompts
r26685
In [1]: def foo():
...: return 3 / 0
...:
In [2]: foo()
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
<ipython-input-2-c19b6d9633cf> in <module>
----> 1 foo()
<ipython-input-1-1595a74c32d5> in foo()
1 def foo():
----> 2 return 3 / 0
3
ZeroDivisionError: division by zero
Blazej Michalik
Fixed whatsnew entry RST warnings
r26686 The error traceback is now correctly formatted, showing the cell number in which the error happened::
martinRenou
Improve error tracebacks so that it shows the cell prompts
r26685
In [1]: def foo():
...: return 3 / 0
...:
In [2]: foo()
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
In [2], in <module>
----> 1 foo()
In [1], in foo()
1 def foo():
----> 2 return 3 / 0
ZeroDivisionError: division by zero