To use geemap and the Earth Engine Python API, you must register for an Earth Engine account and follow the instructions here to create a Cloud Project. Earth Engine is free for noncommercial and research use.
%pip install geemap
import ee
import geemap
Map = geemap.Map()
# Add Earth Engine dataset
image = ee.Image("USGS/SRTMGL1_003")
# Set visualization parameters.
vis_params = {
"min": 0,
"max": 4000,
"palette": "terrain",
}
# Add Earth Engine layers to Map
Map.addLayer(image, vis_params, "DEM")
# Center the map based on an Earth Engine object or coordinates (longitude, latitude)
Map.setCenter(86.9250, 27.9881, 4)
Map
If you can see the map above, you have successfully authenticated the Earth Engine Python API. Otherwise, you might need to follow the instructions here to create a Cloud Project, which is required to use the Earth Engine Python API.