|
14 | 14 |
|
15 | 15 | <title>Python Foundation for Spatial Analysis (Full Course)</title>
|
16 | 16 |
|
17 |
| -<script src="site_libs/header-attrs-2.21/header-attrs.js"></script> |
18 |
| -<script src="site_libs/jquery-3.6.0/jquery-3.6.0.min.js"></script> |
| 17 | +<script src="site_libs/header-attrs-2.10/header-attrs.js"></script> |
| 18 | +<script src="site_libs/jquery-1.11.3/jquery.min.js"></script> |
19 | 19 | <meta name="viewport" content="width=device-width, initial-scale=1" />
|
20 | 20 | <link href="site_libs/bootstrap-3.3.5/css/flatly.min.css" rel="stylesheet" />
|
21 | 21 | <script src="site_libs/bootstrap-3.3.5/js/bootstrap.min.js"></script>
|
|
53 | 53 | </style>
|
54 | 54 |
|
55 | 55 |
|
56 |
| - |
57 | 56 | <style type="text/css">
|
58 | 57 | code {
|
59 | 58 | white-space: pre;
|
|
75 | 74 | }
|
76 | 75 | @media print {
|
77 | 76 | pre > code.sourceCode { white-space: pre-wrap; }
|
78 |
| -pre > code.sourceCode > span { text-indent: -5em; padding-left: 5em; } |
| 77 | +pre > code.sourceCode > span { display: inline-block; text-indent: -5em; padding-left: 5em; } |
79 | 78 | }
|
80 | 79 | pre.numberSource code
|
81 | 80 | { counter-reset: source-line 0; }
|
|
135 | 134 | for (var i = 0; i < sheets.length; i++) {
|
136 | 135 | if (sheets[i].ownerNode.dataset["origin"] !== "pandoc") continue;
|
137 | 136 | try { var rules = sheets[i].cssRules; } catch (e) { continue; }
|
138 |
| - var j = 0; |
139 |
| - while (j < rules.length) { |
| 137 | + for (var j = 0; j < rules.length; j++) { |
140 | 138 | var rule = rules[j];
|
141 | 139 | // check if there is a div.sourceCode rule
|
142 |
| - if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") { |
143 |
| - j++; |
144 |
| - continue; |
145 |
| - } |
| 140 | + if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") continue; |
146 | 141 | var style = rule.style.cssText;
|
147 | 142 | // check if color or background-color is set
|
148 |
| - if (rule.style.color === '' && rule.style.backgroundColor === '') { |
149 |
| - j++; |
150 |
| - continue; |
151 |
| - } |
| 143 | + if (rule.style.color === '' && rule.style.backgroundColor === '') continue; |
152 | 144 | // replace div.sourceCode by a pre.sourceCode rule
|
153 | 145 | sheets[i].deleteRule(j);
|
154 | 146 | sheets[i].insertRule('pre.sourceCode{' + style + '}', j);
|
|
184 | 176 | summary {
|
185 | 177 | display: list-item;
|
186 | 178 | }
|
187 |
| -details > summary > p:only-child { |
188 |
| - display: inline; |
189 |
| -} |
190 | 179 | pre code {
|
191 | 180 | padding: 0;
|
192 | 181 | }
|
|
243 | 232 | href = "index.html";
|
244 | 233 | var menuAnchor = $('a[href="' + href + '"]');
|
245 | 234 |
|
246 |
| - // mark the anchor link active (and if it's in a dropdown, also mark that active) |
247 |
| - var dropdown = menuAnchor.closest('li.dropdown'); |
248 |
| - if (window.bootstrap) { // Bootstrap 4+ |
249 |
| - menuAnchor.addClass('active'); |
250 |
| - dropdown.find('> .dropdown-toggle').addClass('active'); |
251 |
| - } else { // Bootstrap 3 |
252 |
| - menuAnchor.parent().addClass('active'); |
253 |
| - dropdown.addClass('active'); |
254 |
| - } |
| 235 | + // mark it active |
| 236 | + menuAnchor.tab('show'); |
| 237 | + |
| 238 | + // if it's got a parent navbar menu mark it active as well |
| 239 | + menuAnchor.closest('li.dropdown').addClass('active'); |
255 | 240 |
|
256 | 241 | // Navbar adjustments
|
257 | 242 | var navHeight = $(".navbar").first().height() + 15;
|
|
280 | 265 | border-radius: 4px;
|
281 | 266 | }
|
282 | 267 |
|
283 |
| -.tabset-dropdown > .nav-tabs > li.active:before, .tabset-dropdown > .nav-tabs.nav-tabs-open:before { |
284 |
| - content: "\e259"; |
| 268 | +.tabset-dropdown > .nav-tabs > li.active:before { |
| 269 | + content: ""; |
285 | 270 | font-family: 'Glyphicons Halflings';
|
286 | 271 | display: inline-block;
|
287 | 272 | padding: 10px;
|
288 | 273 | border-right: 1px solid #ddd;
|
289 | 274 | }
|
290 | 275 |
|
291 | 276 | .tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before {
|
292 |
| - content: "\e258"; |
293 |
| - font-family: 'Glyphicons Halflings'; |
| 277 | + content: ""; |
294 | 278 | border: none;
|
295 | 279 | }
|
296 | 280 |
|
| 281 | +.tabset-dropdown > .nav-tabs.nav-tabs-open:before { |
| 282 | + content: ""; |
| 283 | + font-family: 'Glyphicons Halflings'; |
| 284 | + display: inline-block; |
| 285 | + padding: 10px; |
| 286 | + border-right: 1px solid #ddd; |
| 287 | +} |
| 288 | + |
297 | 289 | .tabset-dropdown > .nav-tabs > li.active {
|
298 | 290 | display: block;
|
299 | 291 | }
|
|
335 | 327 | <div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
336 | 328 | <div class="container">
|
337 | 329 | <div class="navbar-header">
|
338 |
| - <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-bs-toggle="collapse" data-target="#navbar" data-bs-target="#navbar"> |
| 330 | + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"> |
339 | 331 | <span class="icon-bar"></span>
|
340 | 332 | <span class="icon-bar"></span>
|
341 | 333 | <span class="icon-bar"></span>
|
@@ -2127,8 +2119,8 @@ <h1>Reading Files</h1>
|
2127 | 2119 | <div class="sourceCode" id="cb115"><pre
|
2128 | 2120 | class="sourceCode python"><code class="sourceCode python"><span id="cb115-1"><a href="#cb115-1" tabindex="-1"></a><span class="im">import</span> os</span></code></pre></div>
|
2129 | 2121 | <p>To open a file, we need to know the path to the file. We will now
|
2130 |
| -open and read the file <code>worldcitites.csv</code> located in your |
2131 |
| -data package. In your data package the data folder is in the |
| 2122 | +open and read the file <code>worldcities.csv</code> located in your data |
| 2123 | +package. In your data package the data folder is in the |
2132 | 2124 | <code>data/</code> directory. We can construct the relative path to the
|
2133 | 2125 | file using the <code>os.path.join()</code> method.</p>
|
2134 | 2126 | <div class="sourceCode" id="cb116"><pre
|
|
0 commit comments