[IPython-dev] Passing information to a NotebookManager

Konrad Hinsen konrad.hinsen at fastmail.net
Tue Jan 28 10:01:25 EST 2014


Matthias BUSSONNIER writes:

 > You could create a config object (from IPython.config.loader import Config)
 > add pass it as the config kwarg to NotebookApp, 
 > or at lead use NotebookApp.update_config methods. 

OK, that looks a bit cleaner indeed - and it works :-)

 > Usually anything that can have "Configurable" traits should accept
 > a config object at creation time.  config object would bubble into
 > IPython.config.configurable:Configurable where the magic happens.
 > 
 > Any traits like the one you use can have on_change or validate
 > methods that will trigger when value change or are set.

Thanks, that helped me debug my problem (which ended up being a simple typo).
I added validators to trace the changes.

Konrad.



More information about the IPython-dev mailing list