Show More
@@ -191,6 +191,14 b' class Component(HasTraitlets):' | |||
|
191 | 191 | "root != parent.root") |
|
192 | 192 | |
|
193 | 193 | def _config_changed(self, name, old, new): |
|
194 | """Update all the class traits having a config_key with the config. | |
|
195 | ||
|
196 | For any class traitlet with a ``config_key`` metadata attribute, we | |
|
197 | update the traitlet with the value of the corresponding config entry. | |
|
198 | ||
|
199 | In the future, we might want to do a pop here so stale config info | |
|
200 | is not passed onto children. | |
|
201 | """ | |
|
194 | 202 | # Get all traitlets with a config_key metadata entry |
|
195 | 203 | traitlets = self.traitlets('config_key') |
|
196 | 204 | for k, v in traitlets.items(): |
General Comments 0
You need to be logged in to leave comments.
Login now