Because of the interactivity of Jupyter Notebooks, code and code output exist together. This is great when dealing with geospatial data, as it makes it easy to create a map of the data. In this example, the NBA arenas and MLB stadiums datasets are added to a map over a BaseMap object:
from cartoframes import Layer, BaseMap, styling
cc.map(layers=[BaseMap('light'),
Layer('arenas_nba',),
Layer('stadiums_mlb')], interactive=True)
The output produced is as follows: