python.tpl
17 lines
| 443 B
| application/vnd.groove-tool-template
|
SmartyLexer
Matthias BUSSONNIER
|
r9605 | {%- extends 'null.tpl' -%} | ||
{% block in_prompt %} | ||||
damianavila
|
r11770 | # In[{{ cell.prompt_number if cell.prompt_number else ' ' }}]: | ||
Matthias BUSSONNIER
|
r9605 | {% endblock in_prompt %} | ||
damianavila
|
r11770 | {% block input %} | ||
{{ cell.input | ipython2python }} | ||||
Matthias BUSSONNIER
|
r9605 | {% endblock input %} | ||
{% block markdowncell scoped %} | ||||
Jonathan Frederic
|
r11685 | {{ cell.source | comment_lines }} | ||
Matthias BUSSONNIER
|
r9605 | {% endblock markdowncell %} | ||
{% block headingcell scoped %} | ||||
Jonathan Frederic
|
r11685 | {{ '#' * cell.level }}{{ cell.source | replace('\n', ' ') | comment_lines }} | ||
Matthias BUSSONNIER
|
r9605 | {% endblock headingcell %} | ||