You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"2. Open the credentials file and copy the entire content to the clipboard.\n",
20
-
"\n",
21
-
" **Note:** Ensure that you do not share the content of the credentials file with others to prevent unauthorized access to your Earth Engine account.\n",
22
-
"\n",
23
-
"### Step 2: Creating the Secret in Google Colab\n",
24
-
"\n",
25
-
"1. Open your Google Colab notebook and click on the `secrets` tab.\n",
26
-
"2. Create a new secret with the name `EARTHENGINE_TOKEN`.\n",
27
-
"3. Paste the content from the clipboard into the `Value` input box of the created secret.\n",
28
-
"4. Toggle the button on the left to allow notebook access to the secret.\n",
29
-
"\n",
30
-
"\n",
31
-
"\n",
32
-
"### Step 3: Installing the Required Version of geemap\n",
33
-
"\n",
34
-
"Ensure that you have installed geemap version 0.29.3 or later, as only these versions support the automatic authentication feature."
35
-
],
36
-
"metadata": {
37
-
}
38
-
},
39
-
{
40
-
"cell_type": "code",
41
-
"source": [
42
-
"%pip install -U geemap"
43
-
],
44
-
"metadata": {
45
-
},
46
-
"execution_count": null,
47
-
"outputs": []
48
-
},
49
-
{
50
-
"cell_type": "markdown",
51
-
"source": [
52
-
"### Step 4: Automatic Authentication with geemap\n",
53
-
"\n",
54
-
"To automatically authenticate Earth Engine using the EARTHENGINE_TOKEN in your Google Colab notebook, run the following code:"
55
-
],
56
-
"metadata": {
57
-
}
58
-
},
59
-
{
60
-
"cell_type": "code",
61
-
"source": [
62
-
"import geemap"
63
-
],
64
-
"metadata": {
65
-
},
66
-
"execution_count": null,
67
-
"outputs": []
68
-
},
69
-
{
70
-
"cell_type": "code",
71
-
"source": [
72
-
"m = geemap.Map()\n",
73
-
"m"
74
-
],
75
-
"metadata": {
76
-
},
77
-
"execution_count": null,
78
-
"outputs": []
79
-
}
80
-
],
81
-
"metadata": {
82
-
"colab": {
83
-
"provenance": []
84
-
},
85
-
"kernelspec": {
86
-
"display_name": "Python 3",
87
-
"name": "python3"
88
-
}
2
+
"cells": [
3
+
{
4
+
"cell_type": "markdown",
5
+
"metadata": {},
6
+
"source": [
7
+
"<a href=\"https://colab.research.google.com/github/gee-community/geemap/blob/master/examples/notebooks/00_ee_auth_colab.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open in Colab\"/></a>\n",
8
+
"\n",
9
+
"\n",
10
+
"## Earth Engine Automatic Authentication on Google Colab\n",
11
+
"\n",
12
+
"### Step 1: Locating the Earth Engine Token\n",
13
+
"\n",
14
+
"1. Locate the Earth Engine token on your computer by navigating to the following file path based on your operating system:\n",
"2. Open the credentials file and copy the entire content to the clipboard.\n",
21
+
"\n",
22
+
" **Note:** Ensure that you do not share the content of the credentials file with others to prevent unauthorized access to your Earth Engine account.\n",
23
+
"\n",
24
+
"### Step 2: Creating the Secret in Google Colab\n",
25
+
"\n",
26
+
"1. Open your Google Colab notebook and click on the `secrets` tab.\n",
27
+
"2. Create a new secret with the name `EARTHENGINE_TOKEN`.\n",
28
+
"3. Paste the content from the clipboard into the `Value` input box of the created secret.\n",
29
+
"4. Toggle the button on the left to allow notebook access to the secret.\n",
30
+
"\n",
31
+
"\n",
32
+
"\n",
33
+
"### Step 3: Installing the Required Version of geemap\n",
34
+
"\n",
35
+
"Ensure that you have installed geemap version 0.29.3 or later, as only these versions support the automatic authentication feature."
36
+
]
89
37
},
90
-
"nbformat": 4,
91
-
"nbformat_minor": 0
92
-
}
38
+
{
39
+
"cell_type": "code",
40
+
"execution_count": null,
41
+
"metadata": {},
42
+
"outputs": [],
43
+
"source": [
44
+
"%pip install -U geemap"
45
+
]
46
+
},
47
+
{
48
+
"cell_type": "markdown",
49
+
"metadata": {},
50
+
"source": [
51
+
"### Step 4: Automatic Authentication with geemap\n",
52
+
"\n",
53
+
"To automatically authenticate Earth Engine using the EARTHENGINE_TOKEN in your Google Colab notebook, run the following code:"
0 commit comments