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