##// END OF EJS Templates
ENH: Accept one-off exception mode setting for %tb....
ENH: Accept one-off exception mode setting for %tb. This makes it easy to access a more verbose representation that the currently-active exception reporting mode provides. ```python In [1]: %xmode minimal Exception reporting mode: Minimal In [2]: def f(): ...: 3/0 ...: In [3]: f() ZeroDivisionError: division by zero In [4]: %tb verbose --------------------------------------------------------------------------- ZeroDivisionError Traceback (most recent call last) <ipython-input-3-c43e34e6d405> in <module> ----> 1 f() global f = <function f at 0x10e52de18> <ipython-input-2-cd4172d70b5b> in f() 1 def f(): ----> 2 3/0 3 ZeroDivisionError: division by zero In [5]: f() # The default reporting mode has not been changed.... ZeroDivisionError: division by zero ```

File last commit:

r24007:3de88102
r24850:3f62ea72
Show More
.editorconfig
19 lines | 329 B | text/x-ini | IniLexer
# Top-most EditorConfig file
root = true
[*]
# Unix-style newlines with a newline ending every file
end_of_line = lf
insert_final_newline = true
charset = utf-8
# Four-space indentation
indent_size = 4
indent_style = space
trim_trailing_whitespace = false
[*.yml]
# Two-space indentation
indent_size = 2
indent_style = space