Show More
@@ -7,7 +7,7 b'' | |||||
7 | %=============================================================================== |
|
7 | %=============================================================================== | |
8 |
|
8 | |||
9 | ((* block input scoped *)) |
|
9 | ((* block input scoped *)) | |
10 |
|
|
10 | ((( add_prompt(cell.input, cell, 'In ') ))) | |
11 | ((* endblock input *)) |
|
11 | ((* endblock input *)) | |
12 |
|
12 | |||
13 |
|
13 | |||
@@ -18,7 +18,7 b'' | |||||
18 | ((* block pyout scoped *)) |
|
18 | ((* block pyout scoped *)) | |
19 | ((*- for type in output | filter_data_type -*)) |
|
19 | ((*- for type in output | filter_data_type -*)) | |
20 | ((*- if type in ['text']*)) |
|
20 | ((*- if type in ['text']*)) | |
21 |
|
|
21 | ((( add_prompt(output.text, cell, 'Out') ))) | |
22 | ((*- else -*)) |
|
22 | ((*- else -*)) | |
23 | \verb+Out[((( cell.prompt_number )))]:+((( super() ))) |
|
23 | \verb+Out[((( cell.prompt_number )))]:+((( super() ))) | |
24 | ((*- endif -*)) |
|
24 | ((*- endif -*)) | |
@@ -35,5 +35,7 b'' | |||||
35 | ((* macro add_prompt(text, cell, prompt) -*)) |
|
35 | ((* macro add_prompt(text, cell, prompt) -*)) | |
36 | ((*- set prompt_number = "" ~ cell.prompt_number -*)) |
|
36 | ((*- set prompt_number = "" ~ cell.prompt_number -*)) | |
37 | ((*- set prompt_number_replacement = "." * (prompt_number | length + 2) -*)) |
|
37 | ((*- set prompt_number_replacement = "." * (prompt_number | length + 2) -*)) | |
38 | (((- text | add_prompts(first=prompt ~ '[' ~ prompt_number ~ ']: ', cont=' ' ~ prompt_number_replacement ~ ': ') -))) |
|
38 | \begin{verbatim} | |
|
39 | (((- text | add_prompts(first=prompt ~ '[' ~ prompt_number ~ ']: ', cont=' ' ~ prompt_number_replacement ~ ': ') -))) | |||
|
40 | \end{verbatim} | |||
39 | ((*- endmacro *)) |
|
41 | ((*- endmacro *)) |
General Comments 0
You need to be logged in to leave comments.
Login now