Setting up your Colab Notebook¶
If you head over to the Science AI Earth Engine Dataset Explorer you can find that there are two notebookos in the subfolder. One for generating embeddings and the one one is the actual Earth Engine Dataset Explorer. For the duration of the hackathon we are going to be using The Dataset Explorer notebook.
Once you are there simply click on Open in Colab button and it should open up a Google Colab window for you. Google Colab will automatically connect to a runtime and you can run the notebook here.
Setting up Colab Secrets¶
You create the Gemini API Key in the last steps wouldn't it be great that your notebook remembered these credentials without you having to go fetch them time over time. Welcome Google Colab Secrets, this step allows you to save two things
- Your Google Project ID saved as GOOGLE_PROJECT_ID
- Your Gemini API Key saved as GOOGLE_API_KEY
The animation below should help you fetch those credentials and make them available to you for use. Persistent credentials simply even if you log out and log back into a Google Colab notebook on a new computer/browser or login.
Make sure you use the Toggles to enable notebook access. For here on you are good to go and in fact if you want to jump in simply click on Run All and it should run all cells for you.
There will be some pop ups including one that says
-
This notebook is not authored by Google (Click Run Anyway to continue running the notebook)
-
Allow this notebook to access your Google credentials follow along to enable access.
Go to the last cell and change the question you want to ask this Dataset Explorer, allow it a few seconds to return back some results and thoughts on this dataset.