##// END OF EJS Templates
Revert cell_input and cell_outputs...
Jonathan Frederic -
Show More
@@ -4,11 +4,11 b''
4
4
5 ((=
5 ((=
6
6
7 DO NOT USE THIS AS A BASE WORK,
7 DO NOT USE THIS AS A BASE,
8 IF YOU ARE COPY AND PASTING THIS FILE
8 IF YOU ARE COPY AND PASTING THIS FILE
9 YOU ARE PROBABLY DOING THINGS WRONG.
9 YOU ARE PROBABLY DOING THINGS INCORRECTLY.
10
10
11 Null template, Does nothing except defining a basic structure
11 Null template, does nothing except defining a basic structure
12 To layout the different blocks of a notebook.
12 To layout the different blocks of a notebook.
13
13
14 Subtemplates can override blocks to define their custom representation.
14 Subtemplates can override blocks to define their custom representation.
@@ -34,11 +34,42 b' consider calling super even if it is a leave block, we might insert more blocks '
34 ((*- if cell.cell_type in ['code'] -*))
34 ((*- if cell.cell_type in ['code'] -*))
35 ((*- block codecell scoped -*))
35 ((*- block codecell scoped -*))
36 ((*- block input_group -*))
36 ((*- block input_group -*))
37 ((*- include 'cell_input.tplx' -*))
37 ((*- block in_prompt -*))((*- endblock in_prompt -*))
38 ((*- block input -*))((*- endblock input -*))
38 ((*- endblock input_group -*))
39 ((*- endblock input_group -*))
39 ((*- if cell.outputs -*))
40 ((*- if cell.outputs -*))
40 ((*- block output_group -*))
41 ((*- block output_group -*))
41 ((*- include 'cell_outputs.tplx' -*))
42 ((*- block output_prompt -*))((*- endblock output_prompt -*))
43 ((*- block outputs scoped -*))
44 ((*- for output in cell.outputs -*))
45 ((*- block output scoped -*))
46 ((*- if output.output_type in ['pyout'] -*))
47 ((*- block pyout scoped -*))((*- endblock pyout -*))
48 ((*- elif output.output_type in ['stream'] -*))
49 ((*- block stream scoped -*))
50 ((*- if output.stream in ['stdout'] -*))
51 ((*- block stream_stdout scoped -*))
52 ((*- endblock stream_stdout -*))
53 ((*- elif output.stream in ['stderr'] -*))
54 ((*- block stream_stderr scoped -*))
55 ((*- endblock stream_stderr -*))
56 ((*- endif -*))
57 ((*- endblock stream -*))
58 ((*- elif output.output_type in ['display_data'] -*))
59 ((*- block display_data scoped -*))
60 ((*- block data_priority scoped -*))
61 ((*- endblock data_priority -*))
62 ((*- endblock display_data -*))
63 ((*- elif output.output_type in ['pyerr'] -*))
64 ((*- block pyerr scoped -*))
65 ((*- for line in output.traceback -*))
66 ((*- block traceback_line scoped -*))((*- endblock traceback_line -*))
67 ((*- endfor -*))
68 ((*- endblock pyerr -*))
69 ((*- endif -*))
70 ((*- endblock output -*))
71 ((*- endfor -*))
72 ((*- endblock outputs -*))
42 ((*- endblock output_group -*))
73 ((*- endblock output_group -*))
43 ((*- endif -*))
74 ((*- endif -*))
44 ((*- endblock codecell -*))
75 ((*- endblock codecell -*))
@@ -30,11 +30,42 b' consider calling super even if it is a leave block, we might insert more blocks '
30 {%- if cell.cell_type in ['code'] -%}
30 {%- if cell.cell_type in ['code'] -%}
31 {%- block codecell scoped -%}
31 {%- block codecell scoped -%}
32 {%- block input_group -%}
32 {%- block input_group -%}
33 {%- include 'cell_input.tpl' -%}
33 {%- block in_prompt -%}{%- endblock in_prompt -%}
34 {%- block input -%}{%- endblock input -%}
34 {%- endblock input_group -%}
35 {%- endblock input_group -%}
35 {%- if cell.outputs -%}
36 {%- if cell.outputs -%}
36 {%- block output_group -%}
37 {%- block output_group -%}
37 {%- include 'cell_outputs.tpl' -%}
38 {%- block output_prompt -%}{%- endblock output_prompt -%}
39 {%- block outputs scoped -%}
40 {%- for output in cell.outputs -%}
41 {%- block output scoped -%}
42 {%- if output.output_type in ['pyout'] -%}
43 {%- block pyout scoped -%}{%- endblock pyout -%}
44 {%- elif output.output_type in ['stream'] -%}
45 {%- block stream scoped -%}
46 {%- if output.stream in ['stdout'] -%}
47 {%- block stream_stdout scoped -%}
48 {%- endblock stream_stdout -%}
49 {%- elif output.stream in ['stderr'] -%}
50 {%- block stream_stderr scoped -%}
51 {%- endblock stream_stderr -%}
52 {%- endif -%}
53 {%- endblock stream -%}
54 {%- elif output.output_type in ['display_data'] -%}
55 {%- block display_data scoped -%}
56 {%- block data_priority scoped -%}
57 {%- endblock data_priority -%}
58 {%- endblock display_data -%}
59 {%- elif output.output_type in ['pyerr'] -%}
60 {%- block pyerr scoped -%}
61 {%- for line in output.traceback -%}
62 {%- block traceback_line scoped -%}{%- endblock traceback_line -%}
63 {%- endfor -%}
64 {%- endblock pyerr -%}
65 {%- endif -%}
66 {%- endblock output -%}
67 {%- endfor -%}
68 {%- endblock outputs -%}
38 {%- endblock output_group -%}
69 {%- endblock output_group -%}
39 {%- endif -%}
70 {%- endif -%}
40 {%- endblock codecell -%}
71 {%- endblock codecell -%}
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now