1

In Google Earth Engine Python API, you need to start with an initialization :

import ee

ee.Initialize()

Is there a way to check if the ee has already been Initialized ?

1

during the init, the API will check and add your credentials and they are accecible so you can just use :

import ee 

if not ee.data._credentials:
    ee.Initialize()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.