##// END OF EJS Templates
DOC: Warn the user when they pass `default` to a TraitType....
DOC: Warn the user when they pass `default` to a TraitType. Most TraitType subclasses accept a `default_value` parameter. On more occasions than I care to admit, I've written something like: ``` class Foo(HasTraits): foo_int = Integer(default=5) ``` when what I actually meant was ``` class Foo(HasTraits): foo_int = Integer(default_value=5) ``` I suspect I'm not the only one who's had to track down this same bug multiple times.

File last commit:

r13925:7a8be7be
r20649:fbe6a44e
Show More
article.tplx
16 lines | 463 B | text/plain | TextLexer
Jonathan Frederic
Proof of concept
r12665
Jonathan Frederic
Standard templates default to notebook style.
r12728 % Default to the notebook output style
Jonathan Frederic
Latex book & article implementations
r12668 ((* if not cell_style is defined *))
Jonathan Frederic
Post review with Min, Fernando, and Brian. Simplification...
r12750 ((* set cell_style = 'style_ipython.tplx' *))
Jonathan Frederic
Latex book & article implementations
r12668 ((* endif *))
% Inherit from the specified cell style.
((* extends cell_style *))
%===============================================================================
% Latex Article
%===============================================================================
((* block docclass *))
\documentclass{article}
((* endblock docclass *))