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