We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%xmode verbose
%xmode plain
Related pcdshub/pcdsdevices#591
In [31]: def test(i=0): ...: if i > 5: ...: raise ValueError('this is the exception text') ...: test(i + 1) ...: In [36]: %xmode Exception reporting mode: Plain In [37]: test() Traceback (most recent call last): File "<ipython-input-37-fbd55f77ab7c>", line 1, in <module> test() File "<ipython-input-31-b5ce4b1c52dd>", line 4, in test test(i + 1) File "<ipython-input-31-b5ce4b1c52dd>", line 4, in test test(i + 1) File "<ipython-input-31-b5ce4b1c52dd>", line 4, in test test(i + 1) File "<ipython-input-31-b5ce4b1c52dd>", line 4, in test test(i + 1) File "<ipython-input-31-b5ce4b1c52dd>", line 4, in test test(i + 1) File "<ipython-input-31-b5ce4b1c52dd>", line 4, in test test(i + 1) File "<ipython-input-31-b5ce4b1c52dd>", line 3, in test raise ValueError('this is the exception text') ValueError: this is the exception text In [38]: %xmode Exception reporting mode: Context In [39]: test() --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-39-fbd55f77ab7c> in <module> ----> 1 test() <ipython-input-31-b5ce4b1c52dd> in test(i) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) 5 <ipython-input-31-b5ce4b1c52dd> in test(i) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) 5 <ipython-input-31-b5ce4b1c52dd> in test(i) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) 5 <ipython-input-31-b5ce4b1c52dd> in test(i) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) 5 <ipython-input-31-b5ce4b1c52dd> in test(i) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) 5 <ipython-input-31-b5ce4b1c52dd> in test(i) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) 5 <ipython-input-31-b5ce4b1c52dd> in test(i) 1 def test(i=0): 2 if i > 5: ----> 3 raise ValueError('this is the exception text') 4 test(i + 1) 5 ValueError: this is the exception text In [40]: %xmode Exception reporting mode: Verbose In [41]: test() --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-41-fbd55f77ab7c> in <module> ----> 1 test() global test = <function test at 0x7fba28fc9e18> <ipython-input-31-b5ce4b1c52dd> in test(i=0) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) global test = <function test at 0x7fba28fc9e18> i = 0 5 <ipython-input-31-b5ce4b1c52dd> in test(i=1) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) global test = <function test at 0x7fba28fc9e18> i = 1 5 <ipython-input-31-b5ce4b1c52dd> in test(i=2) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) global test = <function test at 0x7fba28fc9e18> i = 2 5 <ipython-input-31-b5ce4b1c52dd> in test(i=3) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) global test = <function test at 0x7fba28fc9e18> i = 3 5 <ipython-input-31-b5ce4b1c52dd> in test(i=4) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) global test = <function test at 0x7fba28fc9e18> i = 4 5 <ipython-input-31-b5ce4b1c52dd> in test(i=5) 2 if i > 5: 3 raise ValueError('this is the exception text') ----> 4 test(i + 1) global test = <function test at 0x7fba28fc9e18> i = 5 5 <ipython-input-31-b5ce4b1c52dd> in test(i=6) 1 def test(i=0): 2 if i > 5: ----> 3 raise ValueError('this is the exception text') global ValueError = undefined 4 test(i + 1) 5 ValueError: this is the exception text In [42]: %xmode Exception reporting mode: Minimal In [43]: test() ValueError: this is the exception text
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
Current Behavior
Possible Solution
%xmode verbose
%xmode plain
(minimal?)Context
Related pcdshub/pcdsdevices#591
Example
The text was updated successfully, but these errors were encountered: