##// END OF EJS Templates
fix fileext and html multidisplay
Matthias BUSSONNIER -
Show More
@@ -5,4 +5,6 b' c.ConverterTemplate.extract_figures=False'
5 5 c.ConverterTemplate.template_file='basichtml'
6 6 c.ConverterTemplate.tex_environement=False
7 7
8 c.NbconvertApp.fileext='html'
9
8 10 c.ExtractFigureTransformer.enabled = False
@@ -5,4 +5,6 b' c.ConverterTemplate.extract_figures=False'
5 5 c.ConverterTemplate.template_file='fullhtml'
6 6 c.ConverterTemplate.tex_environement=False
7 7
8 c.NbconvertApp.fileext='html'
9
8 10 c.ExtractFigureTransformer.enabled = False
@@ -5,6 +5,7 b" c.ConverterTemplate.template_file='latex_base'"
5 5 c.ConverterTemplate.tex_environement=True
6 6 c.ConverterTemplate.display_data_priority=['latex', 'svg', 'png', 'jpg', 'jpeg' , 'text']
7 7 c.ExtractFigureTransformer.display_data_priority=['latex', 'svg', 'png', 'jpg', 'jpeg']
8 c.NbconvertApp.fileext='tex'
8 9
9 10 c.ExtractFigureTransformer.extra_ext_map={'svg':'pdf'}
10 11 c.ExtractFigureTransformer.enabled=True
@@ -3,3 +3,5 b' c = get_config()'
3 3 c.ConverterTemplate.extract_figures=False
4 4 c.ConverterTemplate.template_file='python'
5 5 c.ConverterTemplate.tex_environement=False
6
7 c.NbconvertApp.fileext='py'
@@ -38,6 +38,8 b' class NbconvertApp(Application):'
38 38 stdout = Bool(True, config=True)
39 39 write = Bool(False, config=True)
40 40
41 fileext = Unicode('txt', config=True)
42
41 43 aliases = {
42 44 'stdout':'NbconvertApp.stdout',
43 45 'write':'NbconvertApp.write',
@@ -98,7 +100,7 b' class NbconvertApp(Application):'
98 100
99 101 keys = resources.keys()
100 102 if self.write :
101 with io.open(os.path.join(out_root+'.'+'ext'),'w') as f:
103 with io.open(os.path.join(out_root+'.'+self.fileext),'w') as f:
102 104 f.write(output)
103 105 if keys :
104 106 if self.write and not os.path.exists(out_root+'_files'):
@@ -14,13 +14,11 b''
14 14 {% endblock input_group %}
15 15
16 16 {% block output_group -%}
17 <div class="vbox output_wrapper">
17 <div class="output_wrapper">
18 18 <div class="output vbox">
19 <div class="hbox output_area">
20 19 {{ super() }}
21 20 </div>
22 21 </div>
23 </div>
24 22 {% endblock output_group %}
25 23
26 24
@@ -30,10 +28,12 b''
30 28
31 29 {% block output_prompt -%}
32 30 <div class="prompt output_prompt">
31 <div class="output vbox">
33 32 {%- if cell.haspyout -%}
34 33 Out[{{cell.prompt_number}}]:
35 34 {%- endif -%}
36 35 </div>
36 </div>
37 37 {% endblock output_prompt %}
38 38
39 39 {% block input %}
@@ -67,21 +67,30 b' unknown type {{cell.type}}'
67 67
68 68
69 69 {% block pyout -%}
70 <div class="output_subarea output_pyout">
70 <div class="hbox output_area">
71 <div class="prompt"></div>
72 <div class="box-flex1 output_subarea output_pyout">
71 73 {% block data_priority scoped %}{{ super()}}{% endblock %}
72 74 </div>
75 </div>
73 76 {%- endblock pyout %}
74 77
75 78 {% block stream_stdout -%}
76 <div class="output_subarea output_stream output_stdout">
79 <div class="hbox output_area">
80 <div class="prompt"></div>
81 <div class="box-flex1 output_subarea output_stream output_stdout">
77 82 <pre>{{output.text |ansi2html}}</pre>
78 83 </div>
84 </div>
79 85 {%- endblock stream_stdout %}
80 86
81 87 {% block stream_stderr -%}
82 <div class="output_subarea output_stream output_stderr">
88 <div class="hbox output_area">
89 <div class="prompt"></div>
90 <div class="box-flex1 output_subarea output_stream output_stderr">
83 91 <pre>{{output.text |ansi2html}}</pre>
84 92 </div>
93 </div>
85 94 {%- endblock stream_stderr %}
86 95
87 96 {% block data_svg -%}
@@ -110,9 +119,12 b' unknown type {{cell.type}}'
110 119 {%- endblock data_latex %}
111 120
112 121 {% block pyerr -%}
113 <div class="output_subarea output_pyerr">
122 <div class="hbox output_area">
123 <div class="prompt"></div>
124 <div class="box-flex1 output_subarea output_pyerr">
114 125 <pre>{{super()}}</pre>
115 126 </div>
127 </div>
116 128 {%- endblock pyerr %}
117 129
118 130 {%- block traceback_line %}
@@ -126,7 +138,10 b' unknown type {{cell.type}}'
126 138
127 139
128 140 {%- block display_data scoped -%}
129 <div class="output_subarea output_display_data">
141 <div class="hbox output_area">
142 <div class="prompt"></div>
143 <div class="box-flex1 output_subarea output_display_data">
130 144 {{super()}}
131 145 </div>
146 </div>
132 147 {%- endblock display_data -%}
General Comments 0
You need to be logged in to leave comments. Login now