##// END OF EJS Templates
update notebook template to prefer offline mathjax
MinRK -
Show More
@@ -1,238 +1,240
1 <!DOCTYPE HTML>
1 <!DOCTYPE HTML>
2 <html>
2 <html>
3
3
4 <head>
4 <head>
5 <meta charset="utf-8">
5 <meta charset="utf-8">
6
6
7 <title>IPython Notebook</title>
7 <title>IPython Notebook</title>
8
8
9 <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
9 <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
10 <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> -->
10 <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> -->
11 <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />-->
11 <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />-->
12
12
13 <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script>
13 <!-- <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script> -->
14 <!-- <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script> -->
14 <script type='text/javascript' src='static/mathjax/MathJax.js?config=TeX-AMS_HTML' charset='utf-8'></script>
15 <script type="text/javascript">
15 <script type="text/javascript">
16 if (typeof MathJax == 'undefined') {
16 if (typeof MathJax == 'undefined') {
17 console.log("Trying to load local copy of MathJax");
17 console.log("No local MathJax, loading from CDN");
18 document.write(unescape("%3Cscript type='text/javascript' src='static/mathjax/MathJax.js%3Fconfig=TeX-AMS_HTML' charset='utf-8'%3E%3C/script%3E"));
18 document.write(unescape("%3Cscript type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js%3Fconfig=TeX-AMS_HTML' charset='utf-8'%3E%3C/script%3E"));
19 }else{
20 console.log("Using local MathJax");
19 }
21 }
20 </script>
22 </script>
21
23
22 <link rel="stylesheet" href="static/codemirror-2.12/lib/codemirror.css">
24 <link rel="stylesheet" href="static/codemirror-2.12/lib/codemirror.css">
23 <link rel="stylesheet" href="static/codemirror-2.12/mode/rst/rst.css">
25 <link rel="stylesheet" href="static/codemirror-2.12/mode/rst/rst.css">
24 <link rel="stylesheet" href="static/codemirror-2.12/theme/ipython.css">
26 <link rel="stylesheet" href="static/codemirror-2.12/theme/ipython.css">
25 <link rel="stylesheet" href="static/codemirror-2.12/theme/default.css">
27 <link rel="stylesheet" href="static/codemirror-2.12/theme/default.css">
26
28
27 <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
29 <link rel="stylesheet" href="static/css/boilerplate.css" type="text/css" />
28 <link rel="stylesheet" href="static/css/layout.css" type="text/css" />
30 <link rel="stylesheet" href="static/css/layout.css" type="text/css" />
29 <link rel="stylesheet" href="static/css/base.css" type="text/css" />
31 <link rel="stylesheet" href="static/css/base.css" type="text/css" />
30 <link rel="stylesheet" href="static/css/notebook.css" type="text/css" />
32 <link rel="stylesheet" href="static/css/notebook.css" type="text/css" />
31 <link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" />
33 <link rel="stylesheet" href="static/css/renderedhtml.css" type="text/css" />
32
34
33
35
34 </head>
36 </head>
35
37
36 <body>
38 <body>
37
39
38 <div id="header">
40 <div id="header">
39 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
41 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
40 <span id="save_widget">
42 <span id="save_widget">
41 <input type="text" id="notebook_name" size="20"></textarea>
43 <input type="text" id="notebook_name" size="20"></textarea>
42 <span id="notebook_id" style="display:none">{{notebook_id}}</span>
44 <span id="notebook_id" style="display:none">{{notebook_id}}</span>
43 <button id="save_notebook">Save</button>
45 <button id="save_notebook">Save</button>
44 </span>
46 </span>
45 <span id="kernel_status">Idle</span>
47 <span id="kernel_status">Idle</span>
46 </div>
48 </div>
47
49
48 <div id="main_app">
50 <div id="main_app">
49
51
50 <div id="left_panel">
52 <div id="left_panel">
51
53
52 <div id="notebook_section">
54 <div id="notebook_section">
53 <h3 class="section_header">Notebook</h3>
55 <h3 class="section_header">Notebook</h3>
54 <div class="section_content">
56 <div class="section_content">
55 <div class="section_row">
57 <div class="section_row">
56 <span id="new_open" class="section_row_buttons">
58 <span id="new_open" class="section_row_buttons">
57 <button id="new_notebook">New</button>
59 <button id="new_notebook">New</button>
58 <button id="open_notebook">Open</button>
60 <button id="open_notebook">Open</button>
59 </span>
61 </span>
60 <span class="section_row_header">Actions</span>
62 <span class="section_row_header">Actions</span>
61 </div>
63 </div>
62 <div class="section_row">
64 <div class="section_row">
63 <span>
65 <span>
64 <select id="download_format">
66 <select id="download_format">
65 <option value="json">ipynb</option>
67 <option value="json">ipynb</option>
66 <option value="py">py</option>
68 <option value="py">py</option>
67 </select>
69 </select>
68 </span>
70 </span>
69 <span class="section_row_buttons">
71 <span class="section_row_buttons">
70 <button id="download_notebook">Download</button>
72 <button id="download_notebook">Download</button>
71 </span>
73 </span>
72 </div>
74 </div>
73 <div class="section_row">
75 <div class="section_row">
74 <span class="section_row_buttons">
76 <span class="section_row_buttons">
75 <span id="print_widget">
77 <span id="print_widget">
76 <button id="print_notebook">Print</button>
78 <button id="print_notebook">Print</button>
77 </span>
79 </span>
78 </span>
80 </span>
79 </div>
81 </div>
80 </div>
82 </div>
81 </div>
83 </div>
82
84
83 <div id="cell_section">
85 <div id="cell_section">
84 <h3 class="section_header">Cell</h3>
86 <h3 class="section_header">Cell</h3>
85 <div class="section_content">
87 <div class="section_content">
86 <div class="section_row">
88 <div class="section_row">
87 <span class="section_row_buttons">
89 <span class="section_row_buttons">
88 <button id="delete_cell">Delete</button>
90 <button id="delete_cell">Delete</button>
89 </span>
91 </span>
90 <span class="section_row_header">Actions</span>
92 <span class="section_row_header">Actions</span>
91 </div>
93 </div>
92 <div class="section_row">
94 <div class="section_row">
93 <span id="cell_type" class="section_row_buttons">
95 <span id="cell_type" class="section_row_buttons">
94 <button id="to_code">Code</button>
96 <button id="to_code">Code</button>
95 <!-- <button id="to_html">HTML</button>-->
97 <!-- <button id="to_html">HTML</button>-->
96 <button id="to_markdown">Markdown</button>
98 <button id="to_markdown">Markdown</button>
97 </span>
99 </span>
98 <span class="button_label">Format</span>
100 <span class="button_label">Format</span>
99 </div>
101 </div>
100 <div class="section_row">
102 <div class="section_row">
101 <span id="cell_output" class="section_row_buttons">
103 <span id="cell_output" class="section_row_buttons">
102 <button id="toggle_output">Toggle</button>
104 <button id="toggle_output">Toggle</button>
103 <button id="clear_all_output">ClearAll</button>
105 <button id="clear_all_output">ClearAll</button>
104 </span>
106 </span>
105 <span class="button_label">Output</span>
107 <span class="button_label">Output</span>
106 </div>
108 </div>
107 <div class="section_row">
109 <div class="section_row">
108 <span id="insert" class="section_row_buttons">
110 <span id="insert" class="section_row_buttons">
109 <button id="insert_cell_above">Above</button>
111 <button id="insert_cell_above">Above</button>
110 <button id="insert_cell_below">Below</button>
112 <button id="insert_cell_below">Below</button>
111 </span>
113 </span>
112 <span class="button_label">Insert</span>
114 <span class="button_label">Insert</span>
113 </div>
115 </div>
114 <div class="section_row">
116 <div class="section_row">
115 <span id="move" class="section_row_buttons">
117 <span id="move" class="section_row_buttons">
116 <button id="move_cell_up">Up</button>
118 <button id="move_cell_up">Up</button>
117 <button id="move_cell_down">Down</button>
119 <button id="move_cell_down">Down</button>
118 </span>
120 </span>
119 <span class="button_label">Move</span>
121 <span class="button_label">Move</span>
120 </div>
122 </div>
121 <div class="section_row">
123 <div class="section_row">
122 <span id="run_cells" class="section_row_buttons">
124 <span id="run_cells" class="section_row_buttons">
123 <button id="run_selected_cell">Selected</button>
125 <button id="run_selected_cell">Selected</button>
124 <button id="run_all_cells">All</button>
126 <button id="run_all_cells">All</button>
125 </span>
127 </span>
126 <span class="button_label">Run</span>
128 <span class="button_label">Run</span>
127 </div>
129 </div>
128 <div class="section_row">
130 <div class="section_row">
129 <span id="autoindent_span">
131 <span id="autoindent_span">
130 <input type="checkbox" id="autoindent" checked="true"></input>
132 <input type="checkbox" id="autoindent" checked="true"></input>
131 </span>
133 </span>
132 <span class="checkbox_label">Autoindent:</span>
134 <span class="checkbox_label">Autoindent:</span>
133 </div>
135 </div>
134 </div>
136 </div>
135 </div>
137 </div>
136
138
137 <div id="kernel_section">
139 <div id="kernel_section">
138 <h3 class="section_header">Kernel</h3>
140 <h3 class="section_header">Kernel</h3>
139 <div class="section_content">
141 <div class="section_content">
140 <div class="section_row">
142 <div class="section_row">
141 <span id="int_restart" class="section_row_buttons">
143 <span id="int_restart" class="section_row_buttons">
142 <button id="int_kernel">Interrupt</button>
144 <button id="int_kernel">Interrupt</button>
143 <button id="restart_kernel">Restart</button>
145 <button id="restart_kernel">Restart</button>
144 </span>
146 </span>
145 <span class="section_row_header">Actions</span>
147 <span class="section_row_header">Actions</span>
146 </div>
148 </div>
147 <div class="section_row">
149 <div class="section_row">
148 <span id="kernel_persist">
150 <span id="kernel_persist">
149 <input type="checkbox" id="kill_kernel"></input>
151 <input type="checkbox" id="kill_kernel"></input>
150 </span>
152 </span>
151 <span class="checkbox_label">Kill kernel upon exit:</span>
153 <span class="checkbox_label">Kill kernel upon exit:</span>
152 </div>
154 </div>
153 </div>
155 </div>
154 </div>
156 </div>
155
157
156 <div id="help_section">
158 <div id="help_section">
157 <h3 class="section_header">Help</h3>
159 <h3 class="section_header">Help</h3>
158 <div class="section_content">
160 <div class="section_content">
159 <div class="section_row">
161 <div class="section_row">
160 <span id="help_buttons0" class="section_row_buttons">
162 <span id="help_buttons0" class="section_row_buttons">
161 <a id="python_help" href="http://docs.python.org" target="_blank">Python</a>
163 <a id="python_help" href="http://docs.python.org" target="_blank">Python</a>
162 <a id="ipython_help" href="http://ipython.org/documentation.html" target="_blank">IPython</a>
164 <a id="ipython_help" href="http://ipython.org/documentation.html" target="_blank">IPython</a>
163 </span>
165 </span>
164 <span class="section_row_header">Links</span>
166 <span class="section_row_header">Links</span>
165 </div>
167 </div>
166 <div class="section_row">
168 <div class="section_row">
167 <span id="help_buttons1" class="section_row_buttons">
169 <span id="help_buttons1" class="section_row_buttons">
168 <a id="numpy_help" href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a>
170 <a id="numpy_help" href="http://docs.scipy.org/doc/numpy/reference/" target="_blank">NumPy</a>
169 <a id="scipy_help" href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a>
171 <a id="scipy_help" href="http://docs.scipy.org/doc/scipy/reference/" target="_blank">SciPy</a>
170 </span>
172 </span>
171 </div>
173 </div>
172 <div class="section_row">
174 <div class="section_row">
173 <span id="help_buttons2" class="section_row_buttons">
175 <span id="help_buttons2" class="section_row_buttons">
174 <a id="matplotlib_help" href="http://matplotlib.sourceforge.net/" target="_blank">MPL</a>
176 <a id="matplotlib_help" href="http://matplotlib.sourceforge.net/" target="_blank">MPL</a>
175 <a id="sympy_help" href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a>
177 <a id="sympy_help" href="http://docs.sympy.org/dev/index.html" target="_blank">SymPy</a>
176 </span>
178 </span>
177 </div>
179 </div>
178 <div class="section_row">
180 <div class="section_row">
179 <span class="help_string">run selected cell</span>
181 <span class="help_string">run selected cell</span>
180 <span class="help_string_label">Shift-Enter :</span>
182 <span class="help_string_label">Shift-Enter :</span>
181 </div>
183 </div>
182 <div class="section_row">
184 <div class="section_row">
183 <span class="help_string">run in terminal mode</span>
185 <span class="help_string">run in terminal mode</span>
184 <span class="help_string_label">Ctrl-Enter :</span>
186 <span class="help_string_label">Ctrl-Enter :</span>
185 </div>
187 </div>
186 <div class="section_row">
188 <div class="section_row">
187 <span class="help_string">show keyboard shortcuts</span>
189 <span class="help_string">show keyboard shortcuts</span>
188 <span class="help_string_label">Ctrl-m h :</span>
190 <span class="help_string_label">Ctrl-m h :</span>
189 </div>
191 </div>
190 </div>
192 </div>
191 </div>
193 </div>
192
194
193 </div>
195 </div>
194 <div id="left_panel_splitter"></div>
196 <div id="left_panel_splitter"></div>
195 <div id="notebook_panel">
197 <div id="notebook_panel">
196 <div id="notebook"></div>
198 <div id="notebook"></div>
197 <div id="pager_splitter"></div>
199 <div id="pager_splitter"></div>
198 <div id="pager"></div>
200 <div id="pager"></div>
199 </div>
201 </div>
200
202
201 </div>
203 </div>
202
204
203 <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
205 <script src="static/jquery/js/jquery-1.6.2.min.js" type="text/javascript" charset="utf-8"></script>
204 <script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
206 <script src="static/jquery/js/jquery-ui-1.8.14.custom.min.js" type="text/javascript" charset="utf-8"></script>
205 <script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
207 <script src="static/jquery/js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>
206
208
207 <script src="static/codemirror-2.12/lib/codemirror.js" charset="utf-8"></script>
209 <script src="static/codemirror-2.12/lib/codemirror.js" charset="utf-8"></script>
208 <script src="static/codemirror-2.12/mode/python/python.js" charset="utf-8"></script>
210 <script src="static/codemirror-2.12/mode/python/python.js" charset="utf-8"></script>
209 <script src="static/codemirror-2.12/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script>
211 <script src="static/codemirror-2.12/mode/htmlmixed/htmlmixed.js" charset="utf-8"></script>
210 <script src="static/codemirror-2.12/mode/xml/xml.js" charset="utf-8"></script>
212 <script src="static/codemirror-2.12/mode/xml/xml.js" charset="utf-8"></script>
211 <script src="static/codemirror-2.12/mode/javascript/javascript.js" charset="utf-8"></script>
213 <script src="static/codemirror-2.12/mode/javascript/javascript.js" charset="utf-8"></script>
212 <script src="static/codemirror-2.12/mode/css/css.js" charset="utf-8"></script>
214 <script src="static/codemirror-2.12/mode/css/css.js" charset="utf-8"></script>
213 <script src="static/codemirror-2.12/mode/rst/rst.js" charset="utf-8"></script>
215 <script src="static/codemirror-2.12/mode/rst/rst.js" charset="utf-8"></script>
214
216
215 <script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
217 <script src="static/pagedown/Markdown.Converter.js" charset="utf-8"></script>
216
218
217 <script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
219 <script src="static/js/namespace.js" type="text/javascript" charset="utf-8"></script>
218 <script src="static/js/utils.js" type="text/javascript" charset="utf-8"></script>
220 <script src="static/js/utils.js" type="text/javascript" charset="utf-8"></script>
219 <script src="static/js/cell.js" type="text/javascript" charset="utf-8"></script>
221 <script src="static/js/cell.js" type="text/javascript" charset="utf-8"></script>
220 <script src="static/js/codecell.js" type="text/javascript" charset="utf-8"></script>
222 <script src="static/js/codecell.js" type="text/javascript" charset="utf-8"></script>
221 <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
223 <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
222 <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
224 <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
223 <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
225 <script src="static/js/kernelstatus.js" type="text/javascript" charset="utf-8"></script>
224 <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
226 <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
225 <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
227 <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
226 <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
228 <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
227 <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
229 <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
228 <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
230 <script src="static/js/printwidget.js" type="text/javascript" charset="utf-8"></script>
229 <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
231 <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
230 <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
232 <script src="static/js/notebook.js" type="text/javascript" charset="utf-8"></script>
231 <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script>
233 <script src="static/js/notebook_main.js" type="text/javascript" charset="utf-8"></script>
232
234
233
235
234 </body>
236 </body>
235
237
236 </html>
238 </html>
237
239
238
240
General Comments 0
You need to be logged in to leave comments. Login now