diff --git a/IPython/config/configurable.py b/IPython/config/configurable.py index c392352..51a8fd0 100644 --- a/IPython/config/configurable.py +++ b/IPython/config/configurable.py @@ -140,7 +140,7 @@ class Configurable(HasTraits): my_config = self._find_my_config(cfg) # hold trait notifications until after all config has been loaded - with self.delay_trait_notifications(): + with self.hold_trait_notifications(): for name, config_value in iteritems(my_config): if name in traits: if isinstance(config_value, LazyConfigValue): diff --git a/IPython/utils/traitlets.py b/IPython/utils/traitlets.py index 860403c..f2fb877 100644 --- a/IPython/utils/traitlets.py +++ b/IPython/utils/traitlets.py @@ -576,12 +576,12 @@ class HasTraits(py3compat.with_metaclass(MetaHasTraits, object)): # We need to use setattr for this to trigger validation and # notifications. - with self.delay_trait_notifications(): + with self.hold_trait_notifications(): for key, value in iteritems(kw): setattr(self, key, value) @contextlib.contextmanager - def delay_trait_notifications(self): + def hold_trait_notifications(self): """Context manager for bundling trait change notifications Use this when doing multiple trait assignments (init, config),