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