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

Configurables are expected to be configurables.... #1038

Closed
Carreau opened this issue Nov 28, 2022 · 2 comments
Closed

Configurables are expected to be configurables.... #1038

Carreau opened this issue Nov 28, 2022 · 2 comments

Comments

@Carreau
Copy link
Member

Carreau commented Nov 28, 2022

The following line makes IPython crash.

%config Completer.use_jedi = False

With:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
Cell In [2], line 1
----> 1 get_ipython().run_line_magic('config', 'Completer.use_jedi = False')

File ~/dev/ipython/IPython/core/interactiveshell.py:2364, in InteractiveShell.run_line_magic(self, magic_name, line, _stack_depth)
   2362     kwargs['local_ns'] = self.get_local_scope(stack_depth)
   2363 with self.builtin_trap:
-> 2364     result = fn(*args, **kwargs)
   2365 return result

File ~/dev/ipython/IPython/core/magics/config.py:167, in ConfigMagics.config(self, s)
    165         print(c)
    166         print(c.__module__)
--> 167 configurables = sorted(set([ c for c in self.shell.configurables
    168                              if c.__class__.class_traits(config=True)
    169                              ]), key=lambda x: x.__class__.__name__)
    170 classnames = [ c.__class__.__name__ for c in configurables ]
    172 line = s.strip()

File ~/dev/ipython/IPython/core/magics/config.py:168, in <listcomp>(.0)
    165         print(c)
    166         print(c.__module__)
    167 configurables = sorted(set([ c for c in self.shell.configurables
--> 168                              if c.__class__.class_traits(config=True)
    169                              ]), key=lambda x: x.__class__.__name__)
    170 classnames = [ c.__class__.__name__ for c in configurables ]
    172 line = s.strip()

AttributeError: type object 'CommManager' has no attribute 'class_traits'

See #1037 as well, but #1037 is not an actual fix.

@blink1073
Copy link
Member

I yanked 6.18.1

@blink1073
Copy link
Member

Closing in favor of #1043

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