##// END OF EJS Templates
Store timestamps for modules to autoreload...
Store timestamps for modules to autoreload Closes gh-4127 At present, autoreload compares the timestamps on .py and .pyc files. However, this can fail in a couple of ways (see gh-4127). With this change, it caches the mtime of the .py file when we loaded it. Some extra complexity is needed to store the mtime as soon as possible - we scan sys.modules when autoreload is loaded, and register a post_execute hook to check for newly imported modules after each cell.

File last commit:

r14881:a678d010
r15682:3ec67fcd
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 %}