##// END OF EJS Templates
Make traitlets notify check more robust against classes redefining equality and bool...
Make traitlets notify check more robust against classes redefining equality and bool Before this change, numpy arrays caused problems since comparing two numpy arrays returns an array of truth values, rather than a single truth value. This change guards against redefining the semantics of comparison by notifying on a trait change if the equality comparison returns anything other than an explicit True value.

File last commit:

r14881:a678d010
r15462:e1b4ab8c
Show More
python.tpl
17 lines | 443 B | application/vnd.groove-tool-template | SmartyLexer
Matthias BUSSONNIER
bring back python.tpl
r9605 {%- extends 'null.tpl' -%}
{% block in_prompt %}
damianavila
Redo of fixing templates structure.
r11770 # In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock in_prompt %}
damianavila
Redo of fixing templates structure.
r11770 {% block input %}
{{ cell.input | ipython2python }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock input %}
{% block markdowncell scoped %}
Jonathan Frederic
Filter names cleanup
r11685 {{ cell.source | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock markdowncell %}
{% block headingcell scoped %}
Jonathan Frederic
Filter names cleanup
r11685 {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock headingcell %}