Show More
@@ -13,26 +13,6 b'' | |||||
13 | </div> |
|
13 | </div> | |
14 | {% endblock input_group %} |
|
14 | {% endblock input_group %} | |
15 |
|
15 | |||
16 | {% block m_input_group -%} |
|
|||
17 | <div class="input"> |
|
|||
18 | {{ super() }} |
|
|||
19 | </div> |
|
|||
20 | {% endblock m_input_group %} |
|
|||
21 |
|
||||
22 | {% block h_input_group -%} |
|
|||
23 | <div class="input"> |
|
|||
24 | {{ super() }} |
|
|||
25 | </div> |
|
|||
26 | {% endblock h_input_group %} |
|
|||
27 |
|
||||
28 | {% block r_input_group -%} |
|
|||
29 | {{ super() }} |
|
|||
30 | {% endblock r_input_group %} |
|
|||
31 |
|
||||
32 | {% block u_input_group -%} |
|
|||
33 | {{ super() }} |
|
|||
34 | {% endblock u_input_group %} |
|
|||
35 |
|
||||
36 | {% block output_group %} |
|
16 | {% block output_group %} | |
37 | <div class="output_wrapper"> |
|
17 | <div class="output_wrapper"> | |
38 | <div class="output"> |
|
18 | <div class="output"> | |
@@ -78,31 +58,37 b' In [{{ cell.prompt_number }}]:' | |||||
78 | </div> |
|
58 | </div> | |
79 | {% endblock output %} |
|
59 | {% endblock output %} | |
80 |
|
60 | |||
81 |
{% block m |
|
61 | {% block markdowncell scoped %} | |
|
62 | <div class="input"> | |||
|
63 | {{ self.e_in_prompt() }} | |||
82 | <div class="inner_cell"> |
|
64 | <div class="inner_cell"> | |
83 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
65 | <div class="text_cell_render border-box-sizing rendered_html"> | |
84 | {{ cell.source | markdown2html | strip_files_prefix }} |
|
66 | {{ cell.source | markdown2html | strip_files_prefix }} | |
85 | </div> |
|
67 | </div> | |
86 | </div> |
|
68 | </div> | |
87 | {%- endblock m_input %} |
|
69 | </div> | |
|
70 | {%- endblock markdowncell %} | |||
88 |
|
71 | |||
89 |
{% block h |
|
72 | {% block headingcell scoped %} | |
|
73 | <div class="input"> | |||
|
74 | {{ self.e_in_prompt() }} | |||
90 | <div class="inner_cell"> |
|
75 | <div class="inner_cell"> | |
91 | <div class="text_cell_render border-box-sizing rendered_html"> |
|
76 | <div class="text_cell_render border-box-sizing rendered_html"> | |
92 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }} |
|
77 | {{ ("#" * cell.level + cell.source) | replace('\n', ' ') | markdown2html | strip_files_prefix | add_anchor }} | |
93 | </div> |
|
78 | </div> | |
94 | </div> |
|
79 | </div> | |
95 | {% endblock h_input %} |
|
80 | </div> | |
|
81 | {% endblock headingcell %} | |||
96 |
|
82 | |||
97 | {% block r_input %} |
|
83 | {%- block rawcell scoped -%} | |
98 | {% if cell.metadata.get('raw_mimetype', resources.get('raw_mimetype', '')).lower() in resources.get('raw_mimetypes', ['']) %} |
|
84 | {% if cell.metadata.get('raw_mimetype', resources.get('raw_mimetype', '')).lower() in resources.get('raw_mimetypes', ['']) %} | |
99 | {{ cell.source }} |
|
85 | {{ cell.source }} | |
100 | {% endif %} |
|
86 | {% endif %} | |
101 |
{% endblock r |
|
87 | {%- endblock rawcell -%} | |
102 |
|
88 | |||
103 |
{% block u |
|
89 | {% block unknowncell scoped %} | |
104 | unknown type {{ cell.type }} |
|
90 | unknown type {{ cell.type }} | |
105 |
{% endblock u |
|
91 | {% endblock unknowncell %} | |
106 |
|
92 | |||
107 | {% block pyout -%} |
|
93 | {% block pyout -%} | |
108 | <div class="box-flex1 output_subarea output_pyout"> |
|
94 | <div class="box-flex1 output_subarea output_pyout"> |
@@ -71,17 +71,9 b' consider calling super even if it is a leave block, we might insert more blocks ' | |||||
71 | {%- endblock codecell -%} |
|
71 | {%- endblock codecell -%} | |
72 | {%- elif cell.cell_type in ['markdown'] -%} |
|
72 | {%- elif cell.cell_type in ['markdown'] -%} | |
73 | {%- block markdowncell scoped-%} |
|
73 | {%- block markdowncell scoped-%} | |
74 | {%- block m_input_group -%} |
|
|||
75 | {%- block e_in_prompt -%}{%- endblock e_in_prompt -%} |
|
|||
76 | {%- block m_input -%}{%- endblock m_input -%} |
|
|||
77 | {%- endblock m_input_group -%} |
|
|||
78 | {%- endblock markdowncell -%} |
|
74 | {%- endblock markdowncell -%} | |
79 | {%- elif cell.cell_type in ['heading'] -%} |
|
75 | {%- elif cell.cell_type in ['heading'] -%} | |
80 | {%- block headingcell scoped-%} |
|
76 | {%- block headingcell scoped-%} | |
81 | {%- block h_input_group -%} |
|
|||
82 | {{ self.e_in_prompt() }} |
|
|||
83 | {%- block h_input -%}{%- endblock h_input -%} |
|
|||
84 | {%- endblock h_input_group -%} |
|
|||
85 | {%- endblock headingcell -%} |
|
77 | {%- endblock headingcell -%} | |
86 | {%- elif cell.cell_type in ['raw'] -%} |
|
78 | {%- elif cell.cell_type in ['raw'] -%} | |
87 | {%- block rawcell scoped -%} |
|
79 | {%- block rawcell scoped -%} | |
@@ -91,10 +83,6 b' consider calling super even if it is a leave block, we might insert more blocks ' | |||||
91 | {%- endblock rawcell -%} |
|
83 | {%- endblock rawcell -%} | |
92 | {%- else -%} |
|
84 | {%- else -%} | |
93 | {%- block unknowncell scoped-%} |
|
85 | {%- block unknowncell scoped-%} | |
94 | {%- block u_input_group -%} |
|
|||
95 | {{ self.e_in_prompt() }} |
|
|||
96 | {%- block u_input -%}{%- endblock u_input -%} |
|
|||
97 | {%- endblock u_input_group -%} |
|
|||
98 | {%- endblock unknowncell -%} |
|
86 | {%- endblock unknowncell -%} | |
99 | {%- endif -%} |
|
87 | {%- endif -%} | |
100 | {%- endblock any_cell -%} |
|
88 | {%- endblock any_cell -%} |
General Comments 0
You need to be logged in to leave comments.
Login now