These are chat archives for
Sign in to start talking
Talking about cool IPython features!
Oct 07 2016 03:50
I'm thinking of using traitlets configuration system for a project in working on, I like the config file generation and the usage of default values. Would using traitlets for this purpose be a bad idea?
Oct 07 2016 03:56
Also, how does the application class in traitlets work? And how does it relate to the configurable class?
Oct 07 2016 07:58
that's totally reasonable. In a traitlets-based application, the Application is generally what's responsible for:
instantiating (configurable) objects
it's 100% okay to use Configurables and config files with a simple argparse entrypoint. You don't
to use Application.
but Application implements some conventions we use in IPython and Jupyter:
loading config files
parsing command-line options
generating help output
Oct 07 2016 09:09
thanks .. since I did a ctrl+p ctrl+q the bash actually did not stop that's way I was wondering if there were a way to retrive it as the one of a
Oct 07 2016 12:24
Is it possible to load a config file with just a configurable object?
Oct 07 2016 12:43
Configurable doesn't have a method to to the loading, but you can definitely do that
Oct 07 2016 12:53
Or you can have the config-file-loading in your entrypoint, and pass it to the constructor of your Configurables
Oct 07 2016 12:59
This is great! Thank you!