##// END OF EJS Templates
Prepend In [x] in traceback with "Input " to avoid messing doctest...
Matthias Bussonnier -
Show More
@@ -185,7 +185,7 b' def _format_filename(file, ColorFilename, ColorNormal):'
185
185
186 if ipinst is not None and file in ipinst.compile._filename_map:
186 if ipinst is not None and file in ipinst.compile._filename_map:
187 file = "[%s]" % ipinst.compile._filename_map[file]
187 file = "[%s]" % ipinst.compile._filename_map[file]
188 tpl_link = "In %s%%s%s" % (ColorFilename, ColorNormal)
188 tpl_link = "Input %sIn %%s%s" % (ColorFilename, ColorNormal)
189 else:
189 else:
190 file = util_path.compress_user(
190 file = util_path.compress_user(
191 py3compat.cast_unicode(file, util_path.fs_encoding)
191 py3compat.cast_unicode(file, util_path.fs_encoding)
@@ -92,6 +92,13 b' Majority of our docstrings have now been reformatted and automatically fixed by'
92 the experimental `Vélin <https://pypi.org/project/velin/>`_ project, to conform
92 the experimental `Vélin <https://pypi.org/project/velin/>`_ project, to conform
93 to numpydoc.
93 to numpydoc.
94
94
95 Type annotations
96 ----------------
97
98 While IPython itself is highly dynamic and can't be completely typed, many of
99 the function now have type annotation, and part of the codebase and now checked
100 by mypy.
101
95
102
96 Featured changes
103 Featured changes
97 ----------------
104 ----------------
@@ -355,13 +362,13 b' The error traceback is now correctly formatted, showing the cell number in which'
355 ...: return 3 / 0
362 ...: return 3 / 0
356 ...:
363 ...:
357
364
358 In [2]: foo()
365 Input In [2]: foo()
359 ---------------------------------------------------------------------------
366 ---------------------------------------------------------------------------
360 ZeroDivisionError Traceback (most recent call last)
367 ZeroDivisionError Traceback (most recent call last)
361 In [2], in <module>
368 input In [2], in <module>
362 ----> 1 foo()
369 ----> 1 foo()
363
370
364 In [1], in foo()
371 Input In [1], in foo()
365 1 def foo():
372 1 def foo():
366 ----> 2 return 3 / 0
373 ----> 2 return 3 / 0
367
374
General Comments 0
You need to be logged in to leave comments. Login now