Skip to content

Commit 87a92e1

Browse files
author
ci-doc-deploy-bot
committed
[skip ci] docs build of 153a2a7
1 parent 57506fb commit 87a92e1

23 files changed

+533
-531
lines changed

_sources/content/mooreslaw-tutorial.ipynb

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

_sources/content/mooreslaw-tutorial.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ $B_M=-675.4$
106106

107107
Since the function represents Moore's law, define it as a Python
108108
function using
109-
[`lambda`](https://docs.python.org/3/library/ast.html?highlight=lambda#ast.Lambda)
109+
[`lambda`](https://docs.python.org/3/library/ast.html?highlight=lambda#ast.Lambda):
110110

111111
```{code-cell}
112112
A_M = np.log(2) / 2
@@ -156,7 +156,7 @@ The extra options below will put the data in the desired format:
156156

157157
* `delimiter = ','`: specify delimeter as a comma ',' (this is the default behavior)
158158
* `usecols = [1,2]`: import the second and third columns from the csv
159-
* `skiprows = 1`: do not use the first row, because its a header row
159+
* `skiprows = 1`: do not use the first row, because it's a header row
160160

161161
```{code-cell}
162162
data = np.loadtxt("transistor_data.csv", delimiter=",", usecols=[1, 2], skiprows=1)
@@ -282,7 +282,7 @@ In the next plot, use the
282282
[`fivethirtyeight`](https://matplotlib.org/3.1.1/gallery/style_sheets/fivethirtyeight.html)
283283
style sheet.
284284
The style sheet replicates
285-
https://fivethirtyeight.com elements. Change the matplotlib style with
285+
<https://fivethirtyeight.com> elements. Change the matplotlib style with
286286
[`plt.style.use`](https://matplotlib.org/3.3.2/api/style_api.html#matplotlib.style.use).
287287

288288
```{code-cell}
@@ -334,7 +334,7 @@ option,
334334
to increase the transparency of the data. The more opaque the points
335335
appear, the more reported values lie on that measurement. The green $+$
336336
is the average reported transistor count for 2017. Plot your predictions
337-
for $\pm\frac{1}{2}~years.
337+
for $\pm\frac{1}{2}$ years.
338338

339339
```{code-cell}
340340
transistor_count2017 = transistor_count[year == 2017]
@@ -386,7 +386,7 @@ array using `np.loadtxt`, to save your model use two approaches
386386
### Zipping the arrays into a file
387387
Using `np.savez`, you can save thousands of arrays and give them names. The
388388
function `np.load` will load the arrays back into the workspace as a
389-
dictionary. You'll save a five arrays so the next user will have the year,
389+
dictionary. You'll save five arrays so the next user will have the year,
390390
transistor count, predicted transistor count, Gordon Moore's
391391
predicted count, and fitting constants. Add one more variable that other users can use to
392392
understand the model, `notes`.

_sources/content/pairing.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "a8cb05be",
5+
"id": "649b9cca",
66
"metadata": {},
77
"source": [
88
"# Pairing Jupyter notebooks and MyST-NB\n",
@@ -76,7 +76,7 @@
7676
{
7777
"cell_type": "code",
7878
"execution_count": 1,
79-
"id": "838d70a7",
79+
"id": "915867a3",
8080
"metadata": {},
8181
"outputs": [
8282
{
@@ -94,7 +94,7 @@
9494
},
9595
{
9696
"cell_type": "markdown",
97-
"id": "b0fefa71",
97+
"id": "1cf3240d",
9898
"metadata": {},
9999
"source": [
100100
"---\n",

_sources/content/save-load-arrays.ipynb

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "218082e5",
5+
"id": "824ec5f2",
66
"metadata": {},
77
"source": [
88
"# Saving and sharing your NumPy arrays\n",
@@ -37,7 +37,7 @@
3737
{
3838
"cell_type": "code",
3939
"execution_count": 1,
40-
"id": "e4ef968e",
40+
"id": "0cd78972",
4141
"metadata": {},
4242
"outputs": [],
4343
"source": [
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"cell_type": "markdown",
49-
"id": "1c4964fe",
49+
"id": "8aa026a4",
5050
"metadata": {},
5151
"source": [
5252
"In this tutorial, you will use the following Python, IPython magic, and NumPy functions:\n",
@@ -64,7 +64,7 @@
6464
},
6565
{
6666
"cell_type": "markdown",
67-
"id": "21353db5",
67+
"id": "8f3e7471",
6868
"metadata": {},
6969
"source": [
7070
"---\n",
@@ -81,7 +81,7 @@
8181
{
8282
"cell_type": "code",
8383
"execution_count": 2,
84-
"id": "27d79279",
84+
"id": "37bea732",
8585
"metadata": {},
8686
"outputs": [
8787
{
@@ -102,7 +102,7 @@
102102
},
103103
{
104104
"cell_type": "markdown",
105-
"id": "29340270",
105+
"id": "a2bc8b1d",
106106
"metadata": {},
107107
"source": [
108108
"## Save your arrays with NumPy's [`savez`](https://numpy.org/doc/stable/reference/generated/numpy.savez.html?highlight=savez#numpy.savez)\n",
@@ -125,7 +125,7 @@
125125
{
126126
"cell_type": "code",
127127
"execution_count": 3,
128-
"id": "e87efc2a",
128+
"id": "079b33b3",
129129
"metadata": {},
130130
"outputs": [],
131131
"source": [
@@ -134,7 +134,7 @@
134134
},
135135
{
136136
"cell_type": "markdown",
137-
"id": "d8ff10b9",
137+
"id": "7522d76d",
138138
"metadata": {},
139139
"source": [
140140
"## Remove the saved arrays and load them back with NumPy's [`load`](https://numpy.org/doc/stable/reference/generated/numpy.load.html#numpy.load)\n",
@@ -159,7 +159,7 @@
159159
{
160160
"cell_type": "code",
161161
"execution_count": 4,
162-
"id": "d718a9b7",
162+
"id": "70c26814",
163163
"metadata": {},
164164
"outputs": [],
165165
"source": [
@@ -169,7 +169,7 @@
169169
{
170170
"cell_type": "code",
171171
"execution_count": 5,
172-
"id": "97d4fd5d",
172+
"id": "5757af26",
173173
"metadata": {},
174174
"outputs": [
175175
{
@@ -189,7 +189,7 @@
189189
{
190190
"cell_type": "code",
191191
"execution_count": 6,
192-
"id": "76d53f0c",
192+
"id": "3aa79872",
193193
"metadata": {},
194194
"outputs": [
195195
{
@@ -209,7 +209,7 @@
209209
{
210210
"cell_type": "code",
211211
"execution_count": 7,
212-
"id": "a8e98170",
212+
"id": "30d87af3",
213213
"metadata": {},
214214
"outputs": [
215215
{
@@ -229,7 +229,7 @@
229229
},
230230
{
231231
"cell_type": "markdown",
232-
"id": "6b1c6a0c",
232+
"id": "b830496a",
233233
"metadata": {},
234234
"source": [
235235
"## Reassign the NpzFile arrays to `x` and `y`\n",
@@ -242,7 +242,7 @@
242242
{
243243
"cell_type": "code",
244244
"execution_count": 8,
245-
"id": "03570370",
245+
"id": "accdf50c",
246246
"metadata": {},
247247
"outputs": [
248248
{
@@ -263,7 +263,7 @@
263263
},
264264
{
265265
"cell_type": "markdown",
266-
"id": "7d9c4960",
266+
"id": "1b4e0ebb",
267267
"metadata": {},
268268
"source": [
269269
"## Success\n",
@@ -294,7 +294,7 @@
294294
{
295295
"cell_type": "code",
296296
"execution_count": 9,
297-
"id": "80f777f8",
297+
"id": "96cd587b",
298298
"metadata": {},
299299
"outputs": [
300300
{
@@ -323,7 +323,7 @@
323323
},
324324
{
325325
"cell_type": "markdown",
326-
"id": "a6e37dbe",
326+
"id": "b30181eb",
327327
"metadata": {},
328328
"source": [
329329
"## Save the data to csv file using [`savetxt`](https://numpy.org/doc/stable/reference/generated/numpy.savetxt.html#numpy.savetxt)\n",
@@ -338,7 +338,7 @@
338338
{
339339
"cell_type": "code",
340340
"execution_count": 10,
341-
"id": "69f288b7",
341+
"id": "20c26a3e",
342342
"metadata": {},
343343
"outputs": [],
344344
"source": [
@@ -347,7 +347,7 @@
347347
},
348348
{
349349
"cell_type": "markdown",
350-
"id": "9513208b",
350+
"id": "0604b826",
351351
"metadata": {},
352352
"source": [
353353
"Open the file, `x_y-squared.csv`, and you'll see the following:"
@@ -356,7 +356,7 @@
356356
{
357357
"cell_type": "code",
358358
"execution_count": 11,
359-
"id": "bb55e215",
359+
"id": "65c19ca7",
360360
"metadata": {},
361361
"outputs": [
362362
{
@@ -382,7 +382,7 @@
382382
},
383383
{
384384
"cell_type": "markdown",
385-
"id": "891de97f",
385+
"id": "ae5028e4",
386386
"metadata": {},
387387
"source": [
388388
"## Our arrays as a csv file\n",
@@ -406,7 +406,7 @@
406406
{
407407
"cell_type": "code",
408408
"execution_count": 12,
409-
"id": "dc1ca6db",
409+
"id": "8f2dff7b",
410410
"metadata": {},
411411
"outputs": [],
412412
"source": [
@@ -416,7 +416,7 @@
416416
{
417417
"cell_type": "code",
418418
"execution_count": 13,
419-
"id": "dc8b7bb7",
419+
"id": "642d9360",
420420
"metadata": {},
421421
"outputs": [],
422422
"source": [
@@ -426,7 +426,7 @@
426426
{
427427
"cell_type": "code",
428428
"execution_count": 14,
429-
"id": "a8142d8b",
429+
"id": "6e5078c7",
430430
"metadata": {},
431431
"outputs": [
432432
{
@@ -447,7 +447,7 @@
447447
{
448448
"cell_type": "code",
449449
"execution_count": 15,
450-
"id": "ead804ad",
450+
"id": "668c0947",
451451
"metadata": {},
452452
"outputs": [
453453
{
@@ -468,7 +468,7 @@
468468
},
469469
{
470470
"cell_type": "markdown",
471-
"id": "2645b1d9",
471+
"id": "0c48b7d0",
472472
"metadata": {},
473473
"source": [
474474
"## Success, but remember your types\n",
@@ -479,7 +479,7 @@
479479
},
480480
{
481481
"cell_type": "markdown",
482-
"id": "8cd2681a",
482+
"id": "c0db8f87",
483483
"metadata": {},
484484
"source": [
485485
"## Wrapping up\n",

0 commit comments

Comments
 (0)