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