Skip to content

Commit

Permalink
Fix folium notebook error (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
giswqs authored Nov 8, 2023
1 parent fb6bea2 commit d80b436
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 12 deletions.
39 changes: 33 additions & 6 deletions docs/notebooks/24_heatmap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -49,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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,
Expand Down
39 changes: 33 additions & 6 deletions examples/notebooks/24_heatmap.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -49,7 +49,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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,
Expand Down

0 comments on commit d80b436

Please sign in to comment.