diff --git a/ch01python/010exemplar.ipynb.py b/ch01python/010exemplar.ipynb.py index 688b6ada..27c4cbe1 100644 --- a/ch01python/010exemplar.ipynb.py +++ b/ch01python/010exemplar.ipynb.py @@ -43,6 +43,9 @@ # By combining them we can feel really powerful but doing minimum work ourselves. The python syntax to import someone else's library is "import". # %% +# install geopy if it is not already installed +%pip install geopy + import geopy # A python library for investigating geographic information. # https://pypi.org/project/geopy/ diff --git a/ch02data/110Capstone.ipynb.py b/ch02data/110Capstone.ipynb.py index b520c6a3..45396f1c 100644 --- a/ch02data/110Capstone.ipynb.py +++ b/ch02data/110Capstone.ipynb.py @@ -30,6 +30,9 @@ # %% # %%writefile greengraph/graph.py +# install geopy if it is not already installed +%pip install geopy + import numpy as np import geopy from matplotlib import pyplot as plt diff --git a/ch04packaging/010Installation.ipynb.py b/ch04packaging/010Installation.ipynb.py index 7371c3b0..db50e0f1 100644 --- a/ch04packaging/010Installation.ipynb.py +++ b/ch04packaging/010Installation.ipynb.py @@ -65,6 +65,9 @@ # Now, close the Jupyter notebook if you have it open, and reopen it. Check your new library is installed with: # %% +# install geopy if it is not already installed +%pip install geopy + import geopy geocoder = geopy.geocoders.Nominatim(user_agent="mphy0021")