-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
389 lines (383 loc) · 21.5 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="generator" content="pandoc">
<meta name="author" content="Filipe Fernandes">
<title>Building your own Weather App using NOAA Open Data and Jupyter Notebooks</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="reveal.js/css/reveal.css">
<style type="text/css">
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
</style>
<style type="text/css">
a.sourceLine { display: inline-block; line-height: 1.25; }
a.sourceLine { pointer-events: none; color: inherit; text-decoration: inherit; }
a.sourceLine:empty { height: 1.2em; position: absolute; }
.sourceCode { overflow: visible; }
code.sourceCode { white-space: pre; position: relative; }
div.sourceCode { margin: 1em 0; }
pre.sourceCode { margin: 0; }
@media screen {
div.sourceCode { overflow: auto; }
}
@media print {
code.sourceCode { white-space: pre-wrap; }
a.sourceLine { text-indent: -1em; padding-left: 1em; }
}
pre.numberSource a.sourceLine
{ position: relative; }
pre.numberSource a.sourceLine:empty
{ position: absolute; }
pre.numberSource a.sourceLine::before
{ content: attr(data-line-number);
position: absolute; left: -5em; text-align: right; vertical-align: baseline;
border: none; pointer-events: all;
-webkit-touch-callout: none; -webkit-user-select: none;
-khtml-user-select: none; -moz-user-select: none;
-ms-user-select: none; user-select: none;
padding: 0 4px; width: 4em;
background-color: #2a211c;
color: #bdae9d;
}
pre.numberSource { margin-left: 3em; border-left: 1px solid #bdae9d; padding-left: 4px; }
div.sourceCode
{ color: #bdae9d; background-color: #2a211c; }
@media screen {
a.sourceLine::before { text-decoration: underline; }
}
code span.al { color: #ffff00; } /* Alert */
code span.an { color: #0066ff; font-weight: bold; font-style: italic; } /* Annotation */
code span.at { } /* Attribute */
code span.bn { color: #44aa43; } /* BaseN */
code span.bu { } /* BuiltIn */
code span.cf { color: #43a8ed; font-weight: bold; } /* ControlFlow */
code span.ch { color: #049b0a; } /* Char */
code span.cn { } /* Constant */
code span.co { color: #0066ff; font-weight: bold; font-style: italic; } /* Comment */
code span.do { color: #0066ff; font-style: italic; } /* Documentation */
code span.dt { text-decoration: underline; } /* DataType */
code span.dv { color: #44aa43; } /* DecVal */
code span.er { color: #ffff00; font-weight: bold; } /* Error */
code span.ex { } /* Extension */
code span.fl { color: #44aa43; } /* Float */
code span.fu { color: #ff9358; font-weight: bold; } /* Function */
code span.im { } /* Import */
code span.in { color: #0066ff; font-weight: bold; font-style: italic; } /* Information */
code span.kw { color: #43a8ed; font-weight: bold; } /* Keyword */
code span.op { } /* Operator */
code span.pp { font-weight: bold; } /* Preprocessor */
code span.sc { color: #049b0a; } /* SpecialChar */
code span.ss { color: #049b0a; } /* SpecialString */
code span.st { color: #049b0a; } /* String */
code span.va { } /* Variable */
code span.vs { color: #049b0a; } /* VerbatimString */
code span.wa { color: #ffff00; font-weight: bold; } /* Warning */
</style>
<link rel="stylesheet" href="reveal.js/css/theme/black.css" id="theme">
<link rel="stylesheet" href="slides.css"/>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'reveal.js/css/print/pdf.css' : 'reveal.js/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src="reveal.js/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<div class="slides">
<section id="title-slide">
<h1 class="title">Building your own Weather App using NOAA Open Data and Jupyter Notebooks</h1>
<p class="author">Filipe Fernandes</p>
<p class="date">Jul 13, 2018</p>
</section>
<section id="whoami" class="slide level1">
<h1><code>whoami</code></h1>
<p>Filipe Fernandes</p>
<ul>
<li class="fragment">Physical Oceanographer</li>
<li class="fragment">Data Plumber</li>
<li class="fragment">Code Janitor</li>
<li class="fragment">CI babysitter</li>
<li class="fragment">Amazon-Dash-Button for conda-forge</li>
</ul>
</section>
<section id="previous-talks-standards" class="slide level1">
<h1>Previous talks: standards</h1>
<iframe width="700" height="500" src="https://www.youtube.com/embed/BV30Sk1CrM0?start=1771" frameborder="0" allow="encrypted-media" allowfullscreen>
</iframe>
<p><a href="https://www.youtube.com/watch?v=BV30Sk1CrM0" class="uri">https://www.youtube.com/watch?v=BV30Sk1CrM0</a></p>
</section>
<section id="previous-talks-ocean-models" class="slide level1">
<h1>Previous talks: ocean models</h1>
<iframe width="700" height="500" src="https://www.youtube.com/embed/WHjU_rg81BI?start=1771" frameborder="0" allow="encrypted-media" allowfullscreen>
</iframe>
<p><a href="https://www.youtube.com/watch?v=WHjU_rg81BI" class="uri">https://www.youtube.com/watch?v=WHjU_rg81BI</a></p>
</section>
<section id="ioos" class="slide level1">
<h1>IOOS</h1>
<p><img data-src="images/IOOS-RAs.jpg" /></p>
</section>
<section id="ioos-numbers" class="slide level1">
<h1>IOOS numbers</h1>
<p><img data-src="images/ioos_by_the_numbers_graphic2_feb2017-2.png" /></p>
</section>
<section id="code-gallery" class="slide level1">
<h1>Code gallery</h1>
<p><img src="images/code-gallery.png" height=450></p>
<p><a href="http://ioos.github.io/notebooks_demos/code_gallery" class="uri">http://ioos.github.io/notebooks_demos/code_gallery</a></p>
</section>
<section id="standards" class="slide level1">
<h1>Standards</h1>
<p>
<img src="images/OGC_Logo_2D_Blue_x_0_0.png" height=100 style="background-color:white"> <img src="images/iso-logo-print.gif" height=100> <img src="images/unidata-logo.png" height=100 style="background-color:white">
</p>
<ul>
<li class="fragment">avoid customer-specific solutions</li>
<li class="fragment">the standardizations happen at the data providers</li>
</ul>
<div class="fragment">
<p><img src="images/standards.svg" height=250 style="background-color:white"></p>
</div>
</section>
<section id="ioos-web-services" class="slide level1">
<h1>IOOS Web Services</h1>
<table>
<thead>
<tr class="header">
<th>Data Type</th>
<th>Web Service</th>
<th>Response</th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td>In-situ data<br>(buoys, stations, etc)</td>
<td>OGC SOS</td>
<td>XML/CSV</td>
</tr>
<tr class="even">
<td>Gridded data (models, satellite)</td>
<td>OPeNDAP</td>
<td>Binary</td>
</tr>
<tr class="odd">
<td>Raster Images</td>
<td>OGC WMS</td>
<td>GeoTIFF/PNG</td>
</tr>
</tbody>
</table>
<div class="fragment">
<p>There is also <code>ERDDAP</code> emerging as a community standard.</p>
</div>
</section>
<section id="sensor-observation-service" class="slide level1">
<h1>Sensor Observation Service</h1>
<p>(OGC SOS)</p>
<ul>
<li class="fragment"><code>GetCapabilities</code>: metadata</li>
<li class="fragment"><code>DescribeSensor</code>: detail info on the instruments</li>
<li class="fragment"><code>GetObservation</code>: the data</li>
</ul>
</section>
<section id="sos-example" class="slide level1">
<h1>SOS example</h1>
<div class="sourceCode" id="cb1"><pre class="sourceCode python"><code class="sourceCode python"><a class="sourceLine" id="cb1-1" data-line-number="1">url <span class="op">=</span> (</a>
<a class="sourceLine" id="cb1-2" data-line-number="2"> <span class="st">'https://opendap.co-ops.nos.noaa.gov/ioos-dif-sos/SOS?'</span></a>
<a class="sourceLine" id="cb1-3" data-line-number="3"> <span class="st">'service=SOS'</span></a>
<a class="sourceLine" id="cb1-4" data-line-number="4"> <span class="st">'&request=GetObservation'</span></a>
<a class="sourceLine" id="cb1-5" data-line-number="5"> <span class="st">'&version=1.0.0'</span></a>
<a class="sourceLine" id="cb1-6" data-line-number="6"> <span class="st">'&observedProperty=water_surface_height_above_reference'</span></a>
<a class="sourceLine" id="cb1-7" data-line-number="7"> <span class="st">'&offering=urn:ioos:station:NOAA.NOS.CO-OPS:8454000'</span></a>
<a class="sourceLine" id="cb1-8" data-line-number="8"> <span class="st">'&responseFormat=text/csv'</span></a>
<a class="sourceLine" id="cb1-9" data-line-number="9"> <span class="st">'&eventTime=2018-07-04T00:00:00Z/2018-07-05T00:00:00Z'</span></a>
<a class="sourceLine" id="cb1-10" data-line-number="10"> <span class="st">'&result=VerticalDatum==urn:ogc:def:datum:epsg::5103'</span></a>
<a class="sourceLine" id="cb1-11" data-line-number="11"> <span class="st">'&dataType=PreliminarySixMinute'</span></a>
<a class="sourceLine" id="cb1-12" data-line-number="12">)</a></code></pre></div>
</section>
<section id="if-we-add-python-to-it" class="slide level1">
<h1>If we add Python to it</h1>
<div class="sourceCode" id="cb2"><pre class="sourceCode python"><code class="sourceCode python"><a class="sourceLine" id="cb2-1" data-line-number="1">url <span class="op">=</span> (</a>
<a class="sourceLine" id="cb2-2" data-line-number="2"> <span class="ss">f'https://opendap.co-ops.nos.noaa.gov/ioos-dif-sos/SOS?'</span></a>
<a class="sourceLine" id="cb2-3" data-line-number="3"> <span class="ss">f'service=SOS&request=</span><span class="sc">{</span>request<span class="sc">}</span><span class="ss">'</span></a>
<a class="sourceLine" id="cb2-4" data-line-number="4"> <span class="ss">f'&version=</span><span class="sc">{</span>version<span class="sc">}</span><span class="ss">'</span></a>
<a class="sourceLine" id="cb2-5" data-line-number="5"> <span class="ss">f'&observedProperty=</span><span class="sc">{</span>variable<span class="sc">}</span><span class="ss">'</span></a>
<a class="sourceLine" id="cb2-6" data-line-number="6"> <span class="ss">f'&offering=urn:ioos:station:NOAA.NOS.CO-OPS:8454000'</span></a>
<a class="sourceLine" id="cb2-7" data-line-number="7"> <span class="ss">f'&responseFormat=</span><span class="sc">{</span>response<span class="sc">}</span><span class="ss">'</span></a>
<a class="sourceLine" id="cb2-8" data-line-number="8"> <span class="ss">f'&eventTime=</span><span class="sc">{</span>yesterday<span class="sc">:</span><span class="op">%</span><span class="sc">Y</span><span class="op">-%</span><span class="sc">m</span><span class="op">-%</span><span class="sc">dT</span><span class="op">%</span><span class="sc">H:</span><span class="op">%</span><span class="sc">M:</span><span class="op">%</span><span class="sc">SZ}</span><span class="ss">/'</span></a>
<a class="sourceLine" id="cb2-9" data-line-number="9"> <span class="ss">f'</span><span class="sc">{</span>today<span class="sc">:</span><span class="op">%</span><span class="sc">Y</span><span class="op">-%</span><span class="sc">m</span><span class="op">-%</span><span class="sc">dT</span><span class="op">%</span><span class="sc">H:</span><span class="op">%</span><span class="sc">M:</span><span class="op">%</span><span class="sc">SZ}</span><span class="ss">'</span></a>
<a class="sourceLine" id="cb2-10" data-line-number="10"> <span class="ss">f'&result=VerticalDatum==</span><span class="sc">{</span>vdatum<span class="sc">}</span><span class="ss">'</span></a>
<a class="sourceLine" id="cb2-11" data-line-number="11"> <span class="ss">f'&dataType=</span><span class="sc">{</span>data_type<span class="sc">}</span><span class="ss">'</span></a>
<a class="sourceLine" id="cb2-12" data-line-number="12">)</a></code></pre></div>
<div class="fragment">
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/00-SOS.ipynb"> <img src="images/jupyterhub.svg" height=75 style="background-color:white"> </a></p>
</div>
</section>
<section id="opendapclimate-and-forecast" class="slide level1">
<h1>OPeNDAP/Climate and Forecast</h1>
<p>(CF)</p>
<iframe src="http://cfconventions.org/" width="750px" height="450px">
</iframe>
</section>
<section id="cf---metadata" class="slide level1">
<h1>CF - Metadata</h1>
<div class="sourceCode" id="cb3"><pre class="sourceCode xml"><code class="sourceCode xml"><a class="sourceLine" id="cb3-1" data-line-number="1">float temp(ocean_time, s_rho, eta_rho, xi_rho);</a>
<a class="sourceLine" id="cb3-2" data-line-number="2"> temp:standard_name = "sea_water_potential_temperature"</a>
<a class="sourceLine" id="cb3-3" data-line-number="3"> temp:units = "Celsius";</a>
<a class="sourceLine" id="cb3-4" data-line-number="4"> temp:coordinates = "lon_rho lat_rho s_rho ocean_time";</a>
<a class="sourceLine" id="cb3-5" data-line-number="5">double s_rho(s_rho);</a>
<a class="sourceLine" id="cb3-6" data-line-number="6"> s_rho:long_name = "S-coordinate at RHO-points";</a>
<a class="sourceLine" id="cb3-7" data-line-number="7"> s_rho:positive = "up";</a>
<a class="sourceLine" id="cb3-8" data-line-number="8"> s_rho:standard_name = "ocean_s_coordinate_g1";</a>
<a class="sourceLine" id="cb3-9" data-line-number="9"> s_rho:formula_terms = "s:s_rho C:Cs_r eta:zeta depth:h</a>
<a class="sourceLine" id="cb3-10" data-line-number="10"> depth_c:hc"</a></code></pre></div>
<div class="fragment">
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/01-ClimateForecast.ipynb"> <img src="images/jupyterhub.svg" height=75 style="background-color:white"> </a></p>
</div>
</section>
<section id="web-mapping-service" class="slide level1">
<h1>Web Mapping Service</h1>
<p>(OGC WMS)</p>
<ul>
<li class="fragment">Simple HTTP interface for requesting geo-registered map images</li>
<li class="fragment">A WMS request defines the geographic layer(s) and area of interest to be processed</li>
<li class="fragment">The response to the request is one or more geo-registered map images (returned as JPEG, PNG, etc)</li>
</ul>
<div class="fragment">
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/02-WMS.ipynb"> <img src="images/jupyterhub.svg" height=75 style="background-color:white"> </a></p>
</div>
</section>
<section id="erddap" class="slide level1">
<h1>ERDDAP</h1>
<p>The data server that the community is demanding</p>
<ul>
<li class="fragment">Flexible outputs: <code>.html</code> table, ESRI <code>.asc</code> and <code>.csv</code>, Google Earth <code>.kml</code>, OPeNDAP binary, <code>.mat</code>, <code>.nc</code>, ODV <code>.txt</code>, <code>.csv</code>, <code>.tsv</code>, <code>.json</code>, and <code>.xhtml</code></li>
<li class="fragment">Free RESTful API to access the data</li>
<li class="fragment">Standardize dates and time in the results</li>
<li class="fragment">Server-side searching and slicing</li>
</ul>
<div class="fragment">
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/03-ERDDAP.ipynb"> <img src="images/jupyterhub.svg" height=75 style="background-color:white"> </a></p>
</div>
</section>
<section id="there-are-many-moving-parts" class="slide level1">
<h1>There are many moving parts</h1>
<p><img data-src="images/grind_gears.gif" /></p>
</section>
<section id="catalog-service-for-the-web" class="slide level1">
<h1>Catalog Service for the Web</h1>
<p>(CSW)</p>
<ul>
<li class="fragment">A single source to find endpoints</li>
<li class="fragment">Nice python interface:<br><code>owslib.csw.CatalogueServiceWeb</code></li>
<li class="fragment">Advanced filtering:<br><code>owslib.fes</code></li>
</ul>
<div class="fragment">
<p><img src="images/one_ring.jpg" height=75 style="background-color:white"></p>
</div>
</section>
<section id="harvesting" class="slide level1">
<h1>Harvesting</h1>
<p><img src="images/IOOS.svg" height=550 style="background-color:white"></p>
</section>
<section id="finding-the-web-services" class="slide level1">
<h1>Finding the web services</h1>
<div class="sourceCode" id="cb4"><pre class="sourceCode python"><code class="sourceCode python"><a class="sourceLine" id="cb4-1" data-line-number="1"><span class="op">>>></span> <span class="im">from</span> geolinks <span class="im">import</span> sniff_link</a>
<a class="sourceLine" id="cb4-2" data-line-number="2"><span class="op">>>></span> sniff_link(<span class="st">'http://host/wms?service=SOS'</span>)</a>
<a class="sourceLine" id="cb4-3" data-line-number="3"><span class="co">'OGC:SOS'</span></a>
<a class="sourceLine" id="cb4-4" data-line-number="4"><span class="op">>>></span> sniff_link(<span class="st">'http://host/wms?service=OPeNDAP:OPeNDAP'</span>)</a>
<a class="sourceLine" id="cb4-5" data-line-number="5"><span class="co">'OPeNDAP:OPeNDAP'</span></a>
<a class="sourceLine" id="cb4-6" data-line-number="6"><span class="op">>>></span> sniff_link(<span class="st">'http://host/wms?service=WMS'</span>)</a>
<a class="sourceLine" id="cb4-7" data-line-number="7"><span class="co">'OGC:WMS'</span></a>
<a class="sourceLine" id="cb4-8" data-line-number="8"><span class="op">>>></span> sniff_link(<span class="st">'http://host/data/roads.kmz'</span>)</a>
<a class="sourceLine" id="cb4-9" data-line-number="9"><span class="co">'OGC:KML'</span></a>
<a class="sourceLine" id="cb4-10" data-line-number="10"><span class="op">>>></span> sniff_link(<span class="st">'http://host/data/roads.kml'</span>)</a>
<a class="sourceLine" id="cb4-11" data-line-number="11"><span class="co">'OGC:KML'</span></a></code></pre></div>
<div class="fragment">
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/04-CSW.ipynb"> <img src="images/jupyterhub.svg" height=75 style="background-color:white"> </a></p>
</div>
</section>
<section id="putting-it-all-together-nhc" class="slide level1">
<h1>Putting it all together: NHC</h1>
<p>Meteorological stations in a National Hurricane Center path prediction.</p>
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/2017-09-09-hurricane_irma.ipynb"> <img src="images/hurricane-irma.png" height=150 style="background-color:white"> </a></p>
</section>
<section id="putting-it-all-together-model-skill" class="slide level1">
<h1>Putting it all together: Model skill</h1>
<p>Modeled Significant Wave Height skill</p>
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/2018-03-30-wave_height_assessment.ipynb"> <img src="images/wave-height.png" height=110 style="background-color:white"> </a></p>
</section>
<section id="putting-it-all-together-erddap-app" class="slide level1">
<h1>Putting it all together: ERDDAP App</h1>
<p>Finally the title notebook!</p>
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages?filepath=notebooks/ERDDAP_timeseries_explorer-IOOS.ipynb"> <img src="images/erddap_app.png" height=400 style="background-color:white"> </a></p>
</section>
<section id="secoora-portal" class="slide level1">
<h1>SECOORA Portal</h1>
<iframe width="700" height="500" src="https://portal.secoora.org">
</iframe>
</section>
<section id="summary" class="slide level1">
<h1>Summary</h1>
<ul>
<li class="fragment">Standards, web services and catalogs allow us to serve data in a unified way</li>
<li class="fragment">Python powered Jupyter gives us a powerful scientific, analysis and visualization environment to fetch</li>
<li class="fragment">Widgets allow for fancy data exploration</li>
</ul>
</section>
<section id="questions" class="slide level1">
<h1>Questions?</h1>
<h4 id="ocefpaf">(<a href="(https://github.com/ocefpaf)">ocefpaf</a>)</h4>
<p><img data-src="images/twitter-github.png" /></p>
<p>… g-mail, google+, etc.</p>
<p><a href="https://ocefpaf.github.io/2018-SciPy-talk" class="uri">https://ocefpaf.github.io/2018-SciPy-talk</a></p>
<p><a href="https://mybinder.org/v2/gh/ocefpaf/2018-SciPy-talk/gh-pages"><img data-src="http://mybinder.org/badge.svg" alt="Binder" /></a></p>
</section>
</div>
</div>
<script src="reveal.js/lib/js/head.min.js"></script>
<script src="reveal.js/js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
// Push each slide change to the browser history
history: true,
math: {
mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js',
config: 'TeX-AMS_HTML-full',
tex2jax: {
inlineMath: [['\\(','\\)']],
displayMath: [['\\[','\\]']],
balanceBraces: true,
processEscapes: false,
processRefs: true,
processEnvironments: true,
preview: 'TeX',
skipTags: ['script','noscript','style','textarea','pre','code'],
ignoreClass: 'tex2jax_ignore',
processClass: 'tex2jax_process'
},
},
// Optional reveal.js plugins
dependencies: [
{ src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'reveal.js/plugin/zoom-js/zoom.js', async: true },
{ src: 'reveal.js/plugin/math/math.js', async: true },
{ src: 'reveal.js/plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>