Show More
@@ -0,0 +1,15 b'' | |||
|
1 | Extending Configurable Containers | |
|
2 | --------------------------------- | |
|
3 | ||
|
4 | Some configurable traits are containers (list, dict, set) | |
|
5 | Config objects now support calling ``extend``, ``update``, ``insert``, etc. | |
|
6 | on traits in config files, which will ultimately result in calling | |
|
7 | those methods on the original object. | |
|
8 | ||
|
9 | The effect being that you can now add to containers without having to copy/paste | |
|
10 | the initial value:: | |
|
11 | ||
|
12 | c = get_config() | |
|
13 | c.InlineBackend.rc.update({ 'figure.figsize' : (6, 4) }) | |
|
14 | ||
|
15 |
General Comments 0
You need to be logged in to leave comments.
Login now