From ce8bcb7ac0b68420506a17003da018b4b1baf70b Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Tue, 7 Nov 2023 21:45:26 -0500 Subject: [PATCH] Fix folium notebook error --- docs/notebooks/24_heatmap.ipynb | 39 ++++++++++++++++++++++++----- examples/notebooks/24_heatmap.ipynb | 39 ++++++++++++++++++++++++----- 2 files changed, 66 insertions(+), 12 deletions(-) diff --git a/docs/notebooks/24_heatmap.ipynb b/docs/notebooks/24_heatmap.ipynb index d8e8c711a7..0ce2fafb77 100644 --- a/docs/notebooks/24_heatmap.ipynb +++ b/docs/notebooks/24_heatmap.ipynb @@ -33,7 +33,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -49,7 +49,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -65,12 +65,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "e442b3f12626469abc57bbbbec6deaaf", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "m = leafmap.Map()\n", - "m.add_basemap(\"Stamen.Toner\")\n", "m.add_heatmap(\n", " filepath,\n", " latitude=\"latitude\",\n", @@ -111,7 +126,7 @@ "metadata": {}, "outputs": [], "source": [ - "m = leafmap.Map(tiles='stamentoner')\n", + "m = leafmap.Map()\n", "m.add_heatmap(\n", " filepath,\n", " latitude=\"latitude\",\n", @@ -129,6 +144,18 @@ "display_name": "Python 3", "language": "python", "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" } }, "nbformat": 4, diff --git a/examples/notebooks/24_heatmap.ipynb b/examples/notebooks/24_heatmap.ipynb index d8e8c711a7..0ce2fafb77 100644 --- a/examples/notebooks/24_heatmap.ipynb +++ b/examples/notebooks/24_heatmap.ipynb @@ -33,7 +33,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 5, "metadata": {}, "outputs": [], "source": [ @@ -49,7 +49,7 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 6, "metadata": {}, "outputs": [], "source": [ @@ -65,12 +65,27 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 7, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "application/vnd.jupyter.widget-view+json": { + "model_id": "e442b3f12626469abc57bbbbec6deaaf", + "version_major": 2, + "version_minor": 0 + }, + "text/plain": [ + "Map(center=[20, 0], controls=(ZoomControl(options=['position', 'zoom_in_text', 'zoom_in_title', 'zoom_out_text…" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ "m = leafmap.Map()\n", - "m.add_basemap(\"Stamen.Toner\")\n", "m.add_heatmap(\n", " filepath,\n", " latitude=\"latitude\",\n", @@ -111,7 +126,7 @@ "metadata": {}, "outputs": [], "source": [ - "m = leafmap.Map(tiles='stamentoner')\n", + "m = leafmap.Map()\n", "m.add_heatmap(\n", " filepath,\n", " latitude=\"latitude\",\n", @@ -129,6 +144,18 @@ "display_name": "Python 3", "language": "python", "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" } }, "nbformat": 4,