Skip to content

Commit

Permalink
Bug fix: moved __future__ import to the top
Browse files Browse the repository at this point in the history
Closes rlabbe#264
  • Loading branch information
rummanwaqar committed Dec 13, 2018
1 parent 17f38c6 commit 6d01426
Show file tree
Hide file tree
Showing 25 changed files with 69 additions and 69 deletions.
6 changes: 3 additions & 3 deletions 00-Preface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -949,7 +949,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 01-g-h-filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -2136,7 +2136,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
6 changes: 3 additions & 3 deletions 02-Discrete-Bayes.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -1792,7 +1792,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
6 changes: 3 additions & 3 deletions 03-Gaussians.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -2163,7 +2163,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
6 changes: 3 additions & 3 deletions 04-One-Dimensional-Kalman-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -2172,7 +2172,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
6 changes: 3 additions & 3 deletions 05-Multivariate-Gaussians.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -1880,7 +1880,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
6 changes: 3 additions & 3 deletions 06-Multivariate-Kalman-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -3132,7 +3132,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"widgets": {
"application/vnd.jupyter.widget-state+json": {
Expand Down
6 changes: 3 additions & 3 deletions 07-Kalman-Filter-Math.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -1668,7 +1668,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 08-Designing-Kalman-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -3978,7 +3978,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
},
"widgets": {
"state": {},
Expand Down
6 changes: 3 additions & 3 deletions 09-Nonlinear-Filtering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -704,7 +704,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 10-Unscented-Kalman-Filter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -3310,7 +3310,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 11-Extended-Kalman-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -1594,7 +1594,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 12-Particle-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -1546,7 +1546,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 13-Smoothing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -610,7 +610,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions 14-Adaptive-Filtering.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -2041,7 +2041,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions Appendix-D-HInfinity-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -152,7 +152,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions Appendix-E-Ensemble-Kalman-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -536,7 +536,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions Appendix-G-Designing-Nonlinear-Kalman-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -780,7 +780,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions Appendix-H-Least-Squares-Filters.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"metadata": {},
"outputs": [],
"source": [
"%matplotlib inline\n",
"from __future__ import division, print_function"
"from __future__ import division, print_function\n",
"%matplotlib inline"
]
},
{
Expand Down Expand Up @@ -109,7 +109,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions Appendix-I-Analytic-Evaluation-of-Performance.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@
],
"source": [
"#format the book\n",
"%matplotlib inline\n",
"from __future__ import division, print_function\n",
"%matplotlib inline\n",
"from book_format import load_style\n",
"load_style()"
]
Expand Down Expand Up @@ -312,7 +312,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.1"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 6d01426

Please sign in to comment.