Skip to content

Commit 6fb543d

Browse files
committed
fix typos
1 parent 2e190d9 commit 6fb543d

14 files changed

+120
-282
lines changed

01_jupyter_howto.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@
175175
"data = {'cos': np.cos(X), 'sin': np.sin(X)}\n",
176176
"trig = DataFrame(index=X, data=data)\n",
177177
"\n",
178-
"trig.plot()"
178+
"trig.plot()\n",
179+
"plt.show()"
179180
]
180181
},
181182
{

04_functions.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@
294294
"source": [
295295
"## Exercise 1\n",
296296
"\n",
297-
"Create a function called `encode` that takes a message and returns the morse code equivalent. Test this function by encodig the message `SOS We have hit an iceberg and need help quickly` and check that you get the same result as in the last session. Now try using your function to encode other messages."
297+
"Create a function called `encode` that takes a message and returns the morse code equivalent. Test this function by encoding the message `SOS We have hit an iceberg and need help quickly` and check that you get the same result as in the last session. Now try using your function to encode other messages."
298298
]
299299
},
300300
{
@@ -372,7 +372,7 @@
372372
"name": "python",
373373
"nbconvert_exporter": "python",
374374
"pygments_lexer": "ipython2",
375-
"version": "2.7.12"
375+
"version": "2.7.15+"
376376
}
377377
},
378378
"nbformat": 4,

05_objects.ipynb

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
{
1515
"cell_type": "code",
1616
"execution_count": null,
17-
"metadata": {
18-
"collapsed": true
19-
},
17+
"metadata": {},
2018
"outputs": [],
2119
"source": [
2220
"letter_to_morse = {'a':'.-', 'b':'-...', 'c':'-.-.', 'd':'-..', 'e':'.', 'f':'..-.',\n",
@@ -31,9 +29,7 @@
3129
{
3230
"cell_type": "code",
3331
"execution_count": null,
34-
"metadata": {
35-
"collapsed": true
36-
},
32+
"metadata": {},
3733
"outputs": [],
3834
"source": [
3935
"def encode(message):\n",
@@ -71,9 +67,7 @@
7167
{
7268
"cell_type": "code",
7369
"execution_count": null,
74-
"metadata": {
75-
"collapsed": true
76-
},
70+
"metadata": {},
7771
"outputs": [],
7872
"source": [
7973
"class Morse:\n",
@@ -103,9 +97,7 @@
10397
{
10498
"cell_type": "code",
10599
"execution_count": null,
106-
"metadata": {
107-
"collapsed": true
108-
},
100+
"metadata": {},
109101
"outputs": [],
110102
"source": [
111103
"m = Morse()"
@@ -137,9 +129,7 @@
137129
{
138130
"cell_type": "code",
139131
"execution_count": null,
140-
"metadata": {
141-
"collapsed": true
142-
},
132+
"metadata": {},
143133
"outputs": [],
144134
"source": [
145135
"class GuessGame:\n",
@@ -163,9 +153,7 @@
163153
{
164154
"cell_type": "code",
165155
"execution_count": null,
166-
"metadata": {
167-
"collapsed": true
168-
},
156+
"metadata": {},
169157
"outputs": [],
170158
"source": [
171159
"g1 = GuessGame(\"cat\")"
@@ -174,9 +162,7 @@
174162
{
175163
"cell_type": "code",
176164
"execution_count": null,
177-
"metadata": {
178-
"collapsed": true
179-
},
165+
"metadata": {},
180166
"outputs": [],
181167
"source": [
182168
"g2 = GuessGame(\"dog\")"
@@ -248,9 +234,7 @@
248234
{
249235
"cell_type": "code",
250236
"execution_count": null,
251-
"metadata": {
252-
"collapsed": true
253-
},
237+
"metadata": {},
254238
"outputs": [],
255239
"source": [
256240
"class GuessGame:\n",
@@ -267,9 +251,7 @@
267251
{
268252
"cell_type": "code",
269253
"execution_count": null,
270-
"metadata": {
271-
"collapsed": true
272-
},
254+
"metadata": {},
273255
"outputs": [],
274256
"source": []
275257
},
@@ -291,9 +273,7 @@
291273
{
292274
"cell_type": "code",
293275
"execution_count": null,
294-
"metadata": {
295-
"collapsed": true
296-
},
276+
"metadata": {},
297277
"outputs": [],
298278
"source": []
299279
}
@@ -314,7 +294,7 @@
314294
"name": "python",
315295
"nbconvert_exporter": "python",
316296
"pygments_lexer": "ipython2",
317-
"version": "2.7.12"
297+
"version": "2.7.15+"
318298
}
319299
},
320300
"nbformat": 4,

0 commit comments

Comments
 (0)