Add a document of 'best practices' on designing with traitlets - #957
Conversation
The Jupyter ecosystem uses traitlets a lot, but there's not a lot of 'design documentation' that tells you how to design your applications to use traitlets. This is the start that at least provides a collection of tips for folks
|
A few notes:
then Are all valid config options that apply in right context and can allow to avoid defining options with different names. I would also add that it is tempting to add config options of everything, but it might be easier to rely on |
|
Ty @Carreau! Does the PR as is feel valuble enough to merge? |
|
Always, i thought you wanted to expand on it :-) merging |
|
ty ty @Carreau :) I appreciate the merge! I think all the ones in your comments are great, and I learnt a few things from there too (like env vars!) |
The Jupyter ecosystem uses traitlets a lot, but there's not a lot of 'design documentation' that tells you how to design your applications to use traitlets. This is the start that at least provides a collection of tips for folks