##// END OF EJS Templates
Merge pull request #3854 from takluyver/i2431...
Merge pull request #3854 from takluyver/i2431 Catch errors filling readline history on startup In some cases, the history db can be a valid SQLite database, but contain strings with null bytes, which readline refuses to accept. This catches and ignores the resulting error. At present, it leaves the history database untouched, and keeps trying to load readline history: if just one entry is invalid, the rest of the history may still be useful to the user. Closes #2431

File last commit:

r11770:6b8a9d57
r11889:b634ae2f merge
Show More
rst.tpl
75 lines | 1.5 KiB | application/vnd.groove-tool-template | SmartyLexer
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {%- extends 'display_priority.tpl' -%}
Matthias BUSSONNIER
start rst converter
r9641
damianavila
Redo of fixing templates structure.
r11770 {% block in_prompt -%}
In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]:
.. code:: python
Matthias BUSSONNIER
start rst converter
r9641 {% endblock in_prompt %}
damianavila
Redo of fixing templates structure.
r11770 {% block output_prompt %}
{% if cell.haspyout -%}
Out[{{ cell.prompt_number }}]:
{% endif %}
{% endblock output_prompt %}
Matthias BUSSONNIER
start rst converter
r9641
damianavila
Redo of fixing templates structure.
r11770 {% block input %}
{{ cell.input | indent}}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock input %}
Matthias BUSSONNIER
start rst converter
r9641
damianavila
Redo of fixing templates structure.
r11770 {% block pyerr %}
::
Matthias BUSSONNIER
fix data priority rst
r9643 {{ super() }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock pyerr %}
{% block traceback_line %}
damianavila
Redo of fixing templates structure.
r11770 {{ line | indent | strip_ansi }}
{% endblock traceback_line %}
Matthias BUSSONNIER
start rst converter
r9641
{% block pyout %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_priority scoped %}
{{ super() }}
{% endblock %}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock pyout %}
{% block stream %}
.. parsed-literal::
damianavila
Redo of fixing templates structure.
r11770 {{ output.text | indent }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock stream %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_svg %}
.. image:: {{ output.svg_filename }}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock data_svg %}
Matthias BUSSONNIER
start rst converter
r9641
damianavila
Redo of fixing templates structure.
r11770 {% block data_png %}
.. image:: {{ output.png_filename }}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock data_png %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_jpg %}
..jpg image:: {{ output.jpg_filename }}
Matthias BUSSONNIER
fix data priority rst
r9643 {% endblock data_jpg %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_latex %}
.. math::
{{ output.latex | indent }}
Matthias BUSSONNIER
fix data priority rst
r9643 {% endblock data_latex %}
damianavila
Redo of fixing templates structure.
r11770 {% block data_text scoped %}
.. parsed-literal::
{{ output.text | indent }}
Matthias BUSSONNIER
create rst converter and fix some bugs
r9642 {% endblock data_text %}
damianavila
Redo of fixing templates structure.
r11770 {% block markdowncell scoped %}
{{ cell.source | markdown2rst }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock markdowncell %}
{% block headingcell scoped %}
MinRK
use markdown for rst headings...
r11317 {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2rst }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock headingcell %}
damianavila
Redo of fixing templates structure.
r11770 {% block rawcell scoped %}
{{ cell.source }}
Matthias BUSSONNIER
start rst converter
r9641 {% endblock rawcell %}
{% block unknowncell scoped %}
unknown type {{cell.type}}
damianavila
Redo of fixing templates structure.
r11770 {% endblock unknowncell %}