Skip to content

Commit 9423ebb

Browse files
committed
Updated for Python 3.6
1 parent 7f229d5 commit 9423ebb

File tree

1 file changed

+20
-28
lines changed

1 file changed

+20
-28
lines changed

Appendix-A-Installation.ipynb

+20-28
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@
2121
"# Installation"
2222
]
2323
},
24-
{
25-
"cell_type": "code",
26-
"execution_count": 1,
27-
"metadata": {},
28-
"outputs": [],
29-
"source": [
30-
"from __future__ import division, print_function"
31-
]
32-
},
3324
{
3425
"cell_type": "markdown",
3526
"metadata": {},
@@ -56,15 +47,16 @@
5647
"\n",
5748
"Jupyter notebook is the software that allows you to run Python inside of the browser - the book is a collection of Jupyter notebooks. IPython provides the infrastructure for Jupyter and data visualization. NumPy and Scipy are packages which provide the linear algebra implementation that the filters use. Sympy performs symbolic math - I use it to find derivatives of algebraic equations. Finally, Matplotlib provides plotting capability. \n",
5849
"\n",
59-
"I use the Anaconda distribution from Continuum Analytics. This is an excellent distribution that combines all of the packages listed above, plus many others. IPython recommends this package to install Ipython. Installation is very straightforward, and it can be done alongside other Python installations you might already have on your machine. It is free to use. You may download it from here: http://continuum.io/downloads I strongly recommend using the latest Python 3 version that they provide. For now I support Python 2.7, but perhaps not much longer. \n",
50+
"I use the Anaconda distribution from Continuum Analytics. This is an excellent distribution that combines all of the packages listed above, plus many others. IPython recommends this package to install Ipython. Installation is very straightforward, and it can be done alongside other Python installations you might already have on your machine. It is free to use. You may download it from here: http://continuum.io/downloads I strongly recommend using the latest Python 3 version that they provide, but this book and FilterPy is compatible with Python 3.6 or later.\n",
6051
"\n",
6152
"There are other choices for installing the SciPy stack. You can find instructions here: http://scipy.org/install.html It can be very cumbersome, and I do not support it or provide any instructions on how to do it.\n",
6253
"\n",
6354
"Many Linux distributions come with these packages pre-installed. However, they are often somewhat dated and they will need to be updated as the book depends on recent versions of all. Updating a specific Linux installation is beyond the scope of this book. An advantage of the Anaconda distribution is that it does not modify your local Python installation, so you can install it and not break your linux distribution. Some people have been tripped up by this. They install Anaconda, but the installed Python remains the default version and then the book's software doesn't run correctly.\n",
6455
"\n",
6556
"I do not run regression tests on old versions of these libraries. In fact, I know the code will not run on older versions (say, from 2014-2015). I do not want to spend my life doing tech support for a book, thus I put the burden on you to install a recent version of Python and the SciPy stack. \n",
6657
"\n",
67-
"You will need Python 2.7 or later installed. Almost all of my work is done in Python 3.6, but I periodically test on 2.7. I do not promise any specific check in will work in 2.7 however. I use Python's `from __future__ import ...` statement to help with compatibility. For example, all prints need to use parenthesis. If you try to add, say, `print x` into the book your script will fail; you must write `print(x)` as in Python 3.X.\n",
58+
"\n",
59+
"You will need Python 3.6 or later installed.\n",
6860
"\n",
6961
"Please submit a bug report at the book's [github repository](https://github.com/rlabbe/Kalman-and-Bayesian-Filters-in-Python) if you have installed the latest Anaconda and something does not work - I will continue to ensure the book will run with the latest Anaconda release. I'm rather indifferent if the book will not run on an older installation. I'm sorry, but I just don't have time to provide support for everyone's different setups. Packages like `jupyter notebook` are evolving rapidly, and I cannot keep up with all the changes *and* remain backwards compatible as well. \n",
7062
"\n",
@@ -156,7 +148,7 @@
156148
},
157149
{
158150
"cell_type": "code",
159-
"execution_count": 2,
151+
"execution_count": 1,
160152
"metadata": {},
161153
"outputs": [
162154
{
@@ -196,7 +188,7 @@
196188
},
197189
{
198190
"cell_type": "code",
199-
"execution_count": 3,
191+
"execution_count": 2,
200192
"metadata": {},
201193
"outputs": [
202194
{
@@ -208,7 +200,7 @@
208200
"\\phi"
209201
]
210202
},
211-
"execution_count": 3,
203+
"execution_count": 2,
212204
"metadata": {},
213205
"output_type": "execute_result"
214206
}
@@ -230,7 +222,7 @@
230222
},
231223
{
232224
"cell_type": "code",
233-
"execution_count": 4,
225+
"execution_count": 3,
234226
"metadata": {},
235227
"outputs": [
236228
{
@@ -244,7 +236,7 @@
244236
"2⋅√φ"
245237
]
246238
},
247-
"execution_count": 4,
239+
"execution_count": 3,
248240
"metadata": {},
249241
"output_type": "execute_result"
250242
}
@@ -262,7 +254,7 @@
262254
},
263255
{
264256
"cell_type": "code",
265-
"execution_count": 5,
257+
"execution_count": 4,
266258
"metadata": {},
267259
"outputs": [
268260
{
@@ -275,7 +267,7 @@
275267
"(\\phi - 1)⋅⎝\\phi + 1⎠"
276268
]
277269
},
278-
"execution_count": 5,
270+
"execution_count": 4,
279271
"metadata": {},
280272
"output_type": "execute_result"
281273
}
@@ -293,7 +285,7 @@
293285
},
294286
{
295287
"cell_type": "code",
296-
"execution_count": 6,
288+
"execution_count": 5,
297289
"metadata": {},
298290
"outputs": [
299291
{
@@ -306,7 +298,7 @@
306298
"\\phi - 3⋅\\phi - 4"
307299
]
308300
},
309-
"execution_count": 6,
301+
"execution_count": 5,
310302
"metadata": {},
311303
"output_type": "execute_result"
312304
}
@@ -324,7 +316,7 @@
324316
},
325317
{
326318
"cell_type": "code",
327-
"execution_count": 7,
319+
"execution_count": 6,
328320
"metadata": {},
329321
"outputs": [
330322
{
@@ -351,7 +343,7 @@
351343
},
352344
{
353345
"cell_type": "code",
354-
"execution_count": 8,
346+
"execution_count": 7,
355347
"metadata": {},
356348
"outputs": [
357349
{
@@ -363,7 +355,7 @@
363355
"2⋅t + 2"
364356
]
365357
},
366-
"execution_count": 8,
358+
"execution_count": 7,
367359
"metadata": {},
368360
"output_type": "execute_result"
369361
}
@@ -386,7 +378,7 @@
386378
},
387379
{
388380
"cell_type": "code",
389-
"execution_count": 9,
381+
"execution_count": 8,
390382
"metadata": {},
391383
"outputs": [
392384
{
@@ -402,7 +394,7 @@
402394
"⎣╲╱ x + z ╲╱ x + z ⎦"
403395
]
404396
},
405-
"execution_count": 9,
397+
"execution_count": 8,
406398
"metadata": {},
407399
"output_type": "execute_result"
408400
}
@@ -433,7 +425,7 @@
433425
},
434426
{
435427
"cell_type": "code",
436-
"execution_count": 10,
428+
"execution_count": 9,
437429
"metadata": {},
438430
"outputs": [
439431
{
@@ -458,7 +450,7 @@
458450
"⎣ 6 2 ⎦"
459451
]
460452
},
461-
"execution_count": 10,
453+
"execution_count": 9,
462454
"metadata": {},
463455
"output_type": "execute_result"
464456
}
@@ -511,7 +503,7 @@
511503
"name": "python",
512504
"nbconvert_exporter": "python",
513505
"pygments_lexer": "ipython3",
514-
"version": "3.7.6"
506+
"version": "3.7.4"
515507
}
516508
},
517509
"nbformat": 4,

0 commit comments

Comments
 (0)