Show More
@@ -518,9 +518,9 class Magics(Configurable): | |||||
518 | raise ValueError('Magics subclass without registration - ' |
|
518 | raise ValueError('Magics subclass without registration - ' | |
519 | 'did you forget to apply @magics_class?') |
|
519 | 'did you forget to apply @magics_class?') | |
520 | if shell is not None: |
|
520 | if shell is not None: | |
521 |
if hasattr( |
|
521 | if hasattr(shell, 'configurables'): | |
522 | shell.configurables.append(self) |
|
522 | shell.configurables.append(self) | |
523 |
if hasattr( |
|
523 | if hasattr(shell, 'config'): | |
524 | kwargs.setdefault('parent', shell) |
|
524 | kwargs.setdefault('parent', shell) | |
525 | kwargs['shell'] = shell |
|
525 | kwargs['shell'] = shell | |
526 |
|
526 |
General Comments 0
You need to be logged in to leave comments.
Login now