##// END OF EJS Templates
Backport PR #4849: Various unicode fixes (mostly on Windows)...
Backport PR #4849: Various unicode fixes (mostly on Windows) There were warnings on startup of IPython, and the qtconsole and notebook could not be started at all if the user's home directory is unicode. Changes: - add `prefer_stream=True` flag to utils.encoding.getdefaultencoding, since the right answer is different for stream output and other things. - always encode args to Popen on Windows Python 2 - never add unicode to sys.path on Python 2 These should be backported for 1.2, and it would be great if some unicode-locale Windows users (@jstenar) could double check the sanity of the changes.

File last commit:

r11770:6b8a9d57
r14916:7cbbbbc4
Show More
python.tpl
54 lines | 1.2 KiB | application/vnd.groove-tool-template | SmartyLexer
Matthias BUSSONNIER
bring back python.tpl
r9605 {%- extends 'null.tpl' -%}
damianavila
Redo of fixing templates structure.
r11770
Matthias BUSSONNIER
bring back python.tpl
r9605 {% 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 %}
{% block output_prompt %}
damianavila
Redo of fixing templates structure.
r11770 # Out[{{ cell.prompt_number }}]:
{% endblock output_prompt %}
Matthias BUSSONNIER
bring back python.tpl
r9605
damianavila
Redo of fixing templates structure.
r11770 {% block input %}
{{ cell.input | ipython2python }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock input %}
{# Those Two are for error displaying
even if the first one seem to do nothing,
it introduces a new line
#}
damianavila
Redo of fixing templates structure.
r11770 {% block pyerr %}
{{ super() }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock pyerr %}
{% block traceback_line %}
damianavila
Redo of fixing templates structure.
r11770 {{ line | indent | strip_ansi }}
{% endblock traceback_line %}
Matthias BUSSONNIER
bring back python.tpl
r9605 {# .... #}
{% block pyout %}
damianavila
Redo of fixing templates structure.
r11770 {{ output.text | indent | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock pyout %}
{% block stream %}
damianavila
Redo of fixing templates structure.
r11770 {{ output.text | indent | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock stream %}
{% block display_data scoped %}
# image file:
{% endblock display_data %}
{% 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 %}
{% block rawcell scoped %}
Jonathan Frederic
Filter names cleanup
r11685 {{ cell.source | comment_lines }}
Matthias BUSSONNIER
bring back python.tpl
r9605 {% endblock rawcell %}
{% block unknowncell scoped %}
damianavila
Redo of fixing templates structure.
r11770 unknown type {{ cell.type }}
{% endblock unknowncell %}