Show More
@@ -6,11 +6,11 b' IF YOU ARE COPY AND PASTING THIS FILE' | |||
|
6 | 6 | YOU ARE PROBABLY DOING THINGS WRONG. |
|
7 | 7 | |
|
8 | 8 | Null template, Does nothing except defining a basic structure |
|
9 |
To layout the diferent |
|
|
9 | To layout the different blocks of a notebook. | |
|
10 | 10 | |
|
11 |
Subtemplates can |
|
|
11 | Subtemplates can override blocks to define their custom representation. | |
|
12 | 12 | |
|
13 | If one of the block you do overrite is not a leave block, consider | |
|
13 | If one of the block you do overwrite is not a leave block, consider | |
|
14 | 14 | calling super. |
|
15 | 15 | |
|
16 | 16 | ((*- block nonLeaveBlock -*)) |
@@ -19,7 +19,7 b' calling super.' | |||
|
19 | 19 | #add stuff at end |
|
20 | 20 | ((*- endblock nonLeaveBlock -*)) |
|
21 | 21 | |
|
22 |
consider calling super even if |
|
|
22 | consider calling super even if it is a leave block, we might insert more blocks later. | |
|
23 | 23 | |
|
24 | 24 | =)) |
|
25 | 25 | ((*- block header -*)) |
@@ -34,11 +34,12 b' consider calling super even if block is leave block, we might insert more block ' | |||
|
34 | 34 | ((*- block in_prompt -*))((*- endblock in_prompt -*)) |
|
35 | 35 | ((*- block input -*))((*- endblock input -*)) |
|
36 | 36 | ((*- endblock input_group -*)) |
|
37 |
|
|
|
37 | ((*- if cell.outputs -*)) | |
|
38 | 38 | ((*- block output_group -*)) |
|
39 |
|
|
|
40 |
|
|
|
41 |
|
|
|
39 | ((*- block output_prompt -*))((*- endblock output_prompt -*)) | |
|
40 | ((*- block outputs scoped -*)) | |
|
41 | ((*- for output in cell.outputs -*)) | |
|
42 | ((*- block output scoped -*)) | |
|
42 | 43 | ((*- if output.output_type in ['pyout'] -*)) |
|
43 | 44 | ((*- block pyout scoped -*))((*- endblock pyout -*)) |
|
44 | 45 | ((*- elif output.output_type in ['stream'] -*)) |
@@ -63,10 +64,11 b' consider calling super even if block is leave block, we might insert more block ' | |||
|
63 | 64 | ((*- endfor -*)) |
|
64 | 65 | ((*- endblock pyerr -*)) |
|
65 | 66 | ((*- endif -*)) |
|
66 |
((*- end |
|
|
67 |
((*- end |
|
|
67 | ((*- endblock output -*)) | |
|
68 | ((*- endfor -*)) | |
|
69 | ((*- endblock outputs -*)) | |
|
68 | 70 | ((*- endblock output_group -*)) |
|
69 |
|
|
|
71 | ((*- endif -*)) | |
|
70 | 72 | ((*- endblock codecell -*)) |
|
71 | 73 | ((*- elif cell.type in ['markdown'] -*)) |
|
72 | 74 | ((*- block markdowncell scoped-*)) |
General Comments 0
You need to be logged in to leave comments.
Login now