Skip to content
New issue

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

%config TerminalInteractiveShell.xmode='Minimal' doesn't apply changes #11691

Open
switowski opened this issue Apr 13, 2019 · 1 comment
Open

Comments

@switowski
Copy link
Contributor

Hi,

either I'm doing something stupid or the following way of setting the xmode doesn't seem to work:

%config TerminalInteractiveShell.xmode='Minimal'

It doesn't change the xmode (while just doing %xmode verbose works perfectly fine):

❯ ipython
Python 3.7.2 (default, Jan 25 2019, 18:07:26)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.4.0 -- An enhanced Interactive Python. Type '?' for help.

In [1]: %config TerminalInteractiveShell.xmode = 'Minimal'

In [2]: raise Exception('test')
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-2-8b9a343053dd> in <module>
----> 1 raise Exception('test')

Exception: test

In [3]: %config TerminalInteractiveShell.xmode = 'Verbose'

In [4]: raise Exception('test')
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-4-8b9a343053dd> in <module>
----> 1 raise Exception('test')

Exception: test

In [5]: %xmode minimal
Exception reporting mode: Minimal

In [6]: raise Exception('test')
Exception: test


In [7]: %xmode verbose
Exception reporting mode: Verbose

In [8]: raise Exception('test')
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
<ipython-input-8-8b9a343053dd> in <module>
----> 1 raise Exception('test')
        global Exception = undefined

Exception: test

I have also tried to change the setting of %config IPCompleter.backslash_combining_completions and this worked perfectly fine.

@Carreau
Copy link
Member

Carreau commented Apr 17, 2019

In the meantime you can just use the xmode magic, but yes we woudl need to hook things correctly to propagate the config change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants