From 0a5ceae48484ab9f87962593202dcb8ea86e05ed Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Mon, 2 Oct 2023 20:59:25 -0400 Subject: [PATCH] Update Colab notebook --- docs/notebooks/00_geemap_colab.ipynb | 12 ++++++------ examples/notebooks/00_geemap_colab.ipynb | 19 ------------------- 2 files changed, 6 insertions(+), 25 deletions(-) diff --git a/docs/notebooks/00_geemap_colab.ipynb b/docs/notebooks/00_geemap_colab.ipynb index 940fd92034..96b1f8583a 100644 --- a/docs/notebooks/00_geemap_colab.ipynb +++ b/docs/notebooks/00_geemap_colab.ipynb @@ -19,7 +19,7 @@ "source": [ "## Install geemap\n", "\n", - "The geemap package has been pre-installed in Google Colab. However, if you would like to install the latest version, you can uncomment and run the following command:" + "The geemap package is pre-installed in Google Colab and is updated to the latest minor or major release every few weeks. If you would like to install the latest version, you can uncomment and run the following command:" ] }, { @@ -37,7 +37,7 @@ "source": [ "## Import libraries\n", "\n", - "Import the Earth Engine Python API and geemap." + "Import the Earth Engine Python API." ] }, { @@ -46,8 +46,7 @@ "metadata": {}, "outputs": [], "source": [ - "import ee\n", - "import geemap" + "import ee" ] }, { @@ -56,7 +55,7 @@ "source": [ "## EE Authentication\n", "\n", - "Run the following cell will start the Earth Engine authentication. Follow the instructions [here](https://book.geemap.org/chapters/01_introduction.html#earth-engine-authentication) to authenticate Earth Engine." + "Running the following cell will start the Earth Engine authentication. Follow the instructions [here](https://book.geemap.org/chapters/01_introduction.html#earth-engine-authentication) to authenticate Earth Engine." ] }, { @@ -65,7 +64,8 @@ "metadata": {}, "outputs": [], "source": [ - "geemap.ee_initialize()" + "ee.Authenticate()", + "ee.Initialize()" ] }, { diff --git a/examples/notebooks/00_geemap_colab.ipynb b/examples/notebooks/00_geemap_colab.ipynb index cb82d2dc0d..96b1f8583a 100644 --- a/examples/notebooks/00_geemap_colab.ipynb +++ b/examples/notebooks/00_geemap_colab.ipynb @@ -103,7 +103,6 @@ { "cell_type": "code", "execution_count": null, - "id": "a42f90dd", "metadata": {}, "outputs": [], "source": [ @@ -114,7 +113,6 @@ }, { "cell_type": "markdown", - "id": "a6646c08", "metadata": {}, "source": [ "## Layer Manager\n", @@ -125,7 +123,6 @@ { "cell_type": "code", "execution_count": null, - "id": "e006e34d", "metadata": {}, "outputs": [], "source": [ @@ -145,7 +142,6 @@ }, { "cell_type": "markdown", - "id": "ef255301", "metadata": {}, "source": [ "## Inspector\n", @@ -156,7 +152,6 @@ { "cell_type": "code", "execution_count": null, - "id": "b046a485", "metadata": {}, "outputs": [], "source": [ @@ -182,7 +177,6 @@ }, { "cell_type": "markdown", - "id": "0b5c4419", "metadata": {}, "source": [ "## Layer Editor\n", @@ -195,7 +189,6 @@ { "cell_type": "code", "execution_count": null, - "id": "d0a9b93c", "metadata": {}, "outputs": [], "source": [ @@ -213,7 +206,6 @@ }, { "cell_type": "markdown", - "id": "a41050fe", "metadata": {}, "source": [ "### Multi-band image" @@ -222,7 +214,6 @@ { "cell_type": "code", "execution_count": null, - "id": "b1efa4fc", "metadata": {}, "outputs": [], "source": [ @@ -239,7 +230,6 @@ }, { "cell_type": "markdown", - "id": "d14935ae", "metadata": {}, "source": [ "### Feature collection" @@ -248,7 +238,6 @@ { "cell_type": "code", "execution_count": null, - "id": "7c1b2827", "metadata": {}, "outputs": [], "source": [ @@ -261,7 +250,6 @@ }, { "cell_type": "markdown", - "id": "62909102", "metadata": {}, "source": [ "## Draw control\n", @@ -276,7 +264,6 @@ { "cell_type": "code", "execution_count": null, - "id": "e7acf5c4", "metadata": {}, "outputs": [], "source": [ @@ -294,7 +281,6 @@ }, { "cell_type": "markdown", - "id": "acb0c10a", "metadata": {}, "source": [ "Use the draw control to draw a polygon on the map." @@ -303,7 +289,6 @@ { "cell_type": "code", "execution_count": null, - "id": "e5b90766", "metadata": {}, "outputs": [], "source": [ @@ -314,7 +299,6 @@ { "cell_type": "code", "execution_count": null, - "id": "9e381aca", "metadata": {}, "outputs": [], "source": [ @@ -325,7 +309,6 @@ { "cell_type": "code", "execution_count": null, - "id": "461101b1", "metadata": {}, "outputs": [], "source": [ @@ -335,7 +318,6 @@ }, { "cell_type": "markdown", - "id": "4589f391", "metadata": {}, "source": [ "Clip the DEM data using the drawn polygon." @@ -344,7 +326,6 @@ { "cell_type": "code", "execution_count": null, - "id": "ef4882bc", "metadata": {}, "outputs": [], "source": [