Skip to content

Commit

Permalink
Install geopy if not already installed
Browse files Browse the repository at this point in the history
  • Loading branch information
Saransh-cpp committed Sep 9, 2024
1 parent 8c4b6ba commit 80d551f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ch01python/010exemplar.ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down
3 changes: 3 additions & 0 deletions ch02data/110Capstone.ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions ch04packaging/010Installation.ipynb.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 80d551f

Please sign in to comment.