##// END OF EJS Templates
Merge pull request #4276 from minrk/config-extend...
Merge pull request #4276 from minrk/config-extend Support container methods in config

File last commit:

r12930:4af6b351
r12934:61716e73 merge
Show More
config-extend.rst
15 lines | 495 B | text/x-rst | RstLexer

Extending Configurable Containers

Some configurable traits are containers (list, dict, set) Config objects now support calling extend, update, insert, etc. on traits in config files, which will ultimately result in calling those methods on the original object.

The effect being that you can now add to containers without having to copy/paste the initial value:

c = get_config()
c.InlineBackend.rc.update({ 'figure.figsize' : (6, 4) })