##// END OF EJS Templates
Removed require.js scheme since it forces async event driven model,...
Removed require.js scheme since it forces async event driven model, this model does not work with the comm/widget communication model. We need to be able to load the dependencies before we send the show() message to the widget manager. Otherwise a race condition will exist where the widget manager may recieve the show message before the dependencies have been loaded (happened almost every time).

File last commit:

r13921:93f09d85
r14257:20896811
Show More
python.tpl
51 lines | 1.1 KiB | application/vnd.groove-tool-template | SmartyLexer
{%- extends 'null.tpl' -%}
{% block in_prompt %}
# In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
{% endblock in_prompt %}
{% block output_prompt %}
# Out[{{ cell.prompt_number }}]:
{% endblock output_prompt %}
{% block input %}
{{ cell.input | ipython2python }}
{% endblock input %}
{# Those Two are for error displaying
even if the first one seem to do nothing,
it introduces a new line
#}
{% block pyerr %}
{{ super() }}
{% endblock pyerr %}
{% block traceback_line %}
{{ line | indent | strip_ansi }}
{% endblock traceback_line %}
{# .... #}
{% block pyout %}
{{ output.text or '' | indent | comment_lines }}
{% endblock pyout %}
{% block stream %}
{{ output.text | indent | comment_lines }}
{% endblock stream %}
{% block display_data scoped %}
# image file:
{% endblock display_data %}
{% block markdowncell scoped %}
{{ cell.source | comment_lines }}
{% endblock markdowncell %}
{% block headingcell scoped %}
{{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }}
{% endblock headingcell %}
{% block unknowncell scoped %}
unknown type {{ cell.type }}
{% endblock unknowncell %}