We have covered the basic installation of Jupyter Notebook in Chapter 1, Package Installation and Management and in the previous chapter at various instances to run code and get the desired output.
Here, we will be using Jupyter Notebook for CARTOframes to connect to an account and analyze geospatial data and display it.
In the first code box, we will import the CARTOframes module, and pass the API key string along with the base URL, which is generated from your CARTO username as https://{username}.carto.com
. In this case, the URL is https://lokiintelligent.carto.com
:
In this code block, the API key and the URL are passed to the CartoContext
class, and a CartoContext
connect object is returned and assigned to the variable cc
. With this object, we can now interact with the datasets associated with our account, load datasets into the account, and even generate maps directly in the Jupyter Notebook.
Once the code has been entered into the section...