Skip to content

Commit 75a5b29

Browse files
author
Manushi Majumdar
committed
updated map widget outputs, updated sharing markdown
1 parent 9112cd3 commit 75a5b29

File tree

1 file changed

+35
-159
lines changed

1 file changed

+35
-159
lines changed

samples/04_gis_analysts_data_scientists/fighting_california_forest_fires_using_spatial_analysis.ipynb

Lines changed: 35 additions & 159 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"import pandas as pd\n",
4242
"\n",
4343
"# create a Web GIS object\n",
44-
"gis = GIS(profile='your_enterprise_profile')"
44+
"gis = GIS('https://pythonapi.playground.esri.com/portal', 'arcgis_python', 'amazing_arcgis_123')"
4545
]
4646
},
4747
{
@@ -118,7 +118,7 @@
118118
" </a>\n",
119119
" <br/>Fires in Southern California active during 2016-2017.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\" width=16 height=16>Feature Layer Collection by api_data_owner\n",
120120
" <br/>Last Modified: December 19, 2023\n",
121-
" <br/>0 comments, 5 views\n",
121+
" <br/>0 comments, 6 views\n",
122122
" </div>\n",
123123
" </div>\n",
124124
" "
@@ -145,7 +145,7 @@
145145
" </a>\n",
146146
" <br/>Essential facilities to public health and safety in Southern California.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\" width=16 height=16>Feature Layer Collection by api_data_owner\n",
147147
" <br/>Last Modified: December 19, 2023\n",
148-
" <br/>0 comments, 5 views\n",
148+
" <br/>0 comments, 6 views\n",
149149
" </div>\n",
150150
" </div>\n",
151151
" "
@@ -172,7 +172,7 @@
172172
" </a>\n",
173173
" <br/>A Web Map with critical infrastructure at risk from fires.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/maps16.png' style=\"vertical-align:middle;\" width=16 height=16>Web Map by api_data_owner\n",
174174
" <br/>Last Modified: December 20, 2023\n",
175-
" <br/>0 comments, 3 views\n",
175+
" <br/>0 comments, 5 views\n",
176176
" </div>\n",
177177
" </div>\n",
178178
" "
@@ -206,42 +206,11 @@
206206
"metadata": {},
207207
"outputs": [
208208
{
209-
"data": {
210-
"application/vnd.jupyter.widget-view+json": {
211-
"model_id": "2d944e6e4d3b45b7944ac0a1c901309a",
212-
"version_major": 2,
213-
"version_minor": 0
214-
},
215-
"text/plain": [
216-
"MapView(layout=Layout(height='400px', width='100%'))"
217-
]
218-
},
219-
"metadata": {},
220-
"output_type": "display_data"
221-
},
222-
{
223-
"data": {
224-
"text/html": [
225-
"<div class=\"map-static-img-preview-2e9a957a-63da-46ec-9e4b-795aa0614e6a\"><img src=\"\"></img></div>"
226-
],
227-
"text/plain": [
228-
"<IPython.core.display.HTML object>"
229-
]
230-
},
231-
"metadata": {},
232-
"output_type": "display_data"
233-
},
234-
{
235-
"data": {
236-
"text/html": [
237-
"<div class=\"map-html-embed-preview-2e9a957a-63da-46ec-9e4b-795aa0614e6a\"></div>"
238-
],
239-
"text/plain": [
240-
"<IPython.core.display.HTML object>"
241-
]
242-
},
243-
"metadata": {},
244-
"output_type": "display_data"
209+
"name": "stdout",
210+
"output_type": "stream",
211+
"text": [
212+
"\n"
213+
]
245214
}
246215
],
247216
"source": [
@@ -300,42 +269,11 @@
300269
"metadata": {},
301270
"outputs": [
302271
{
303-
"data": {
304-
"application/vnd.jupyter.widget-view+json": {
305-
"model_id": "ce906a33b8b44d31b008cfe6a242a5a2",
306-
"version_major": 2,
307-
"version_minor": 0
308-
},
309-
"text/plain": [
310-
"MapView(layout=Layout(height='400px', width='100%'))"
311-
]
312-
},
313-
"metadata": {},
314-
"output_type": "display_data"
315-
},
316-
{
317-
"data": {
318-
"text/html": [
319-
"<div class=\"map-static-img-preview-80401bd3-8064-4305-ab3b-451fd59a42d7\"><img src=\"\"></img></div>"
320-
],
321-
"text/plain": [
322-
"<IPython.core.display.HTML object>"
323-
]
324-
},
325-
"metadata": {},
326-
"output_type": "display_data"
327-
},
328-
{
329-
"data": {
330-
"text/html": [
331-
"<div class=\"map-html-embed-preview-80401bd3-8064-4305-ab3b-451fd59a42d7\"></div>"
332-
],
333-
"text/plain": [
334-
"<IPython.core.display.HTML object>"
335-
]
336-
},
337-
"metadata": {},
338-
"output_type": "display_data"
272+
"name": "stdout",
273+
"output_type": "stream",
274+
"text": [
275+
"\n"
276+
]
339277
}
340278
],
341279
"source": [
@@ -394,7 +332,7 @@
394332
"cell_type": "markdown",
395333
"metadata": {},
396334
"source": [
397-
"The output layer is private by default. To share it with particular groups, members within the org, or everyone, we can use the `Item.share()` method. The code below shares it to everyone (public):"
335+
"The output layer is private by default. To share it with particular groups, members within the org, or everyone, we can use the `Item.sharing.sharing_level` property. The code below shares it to `'EVERYONE'` (public):"
398336
]
399337
},
400338
{
@@ -476,7 +414,7 @@
476414
{
477415
"data": {
478416
"text/plain": [
479-
"[<FeatureLayer url:\"https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_01_19_18_33/FeatureServer/0\">]"
417+
"[<FeatureLayer url:\"https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_07_18_41_36/FeatureServer/0\">]"
480418
]
481419
},
482420
"execution_count": 16,
@@ -943,42 +881,11 @@
943881
"metadata": {},
944882
"outputs": [
945883
{
946-
"data": {
947-
"application/vnd.jupyter.widget-view+json": {
948-
"model_id": "3d72d0b5025f465f958c903cfd6634c4",
949-
"version_major": 2,
950-
"version_minor": 0
951-
},
952-
"text/plain": [
953-
"MapView(layout=Layout(height='400px', width='100%'))"
954-
]
955-
},
956-
"metadata": {},
957-
"output_type": "display_data"
958-
},
959-
{
960-
"data": {
961-
"text/html": [
962-
"<div class=\"map-static-img-preview-d0ff601f-e433-4806-92a3-24eecb35a384\"><img src=\"\"></img></div>"
963-
],
964-
"text/plain": [
965-
"<IPython.core.display.HTML object>"
966-
]
967-
},
968-
"metadata": {},
969-
"output_type": "display_data"
970-
},
971-
{
972-
"data": {
973-
"text/html": [
974-
"<div class=\"map-html-embed-preview-d0ff601f-e433-4806-92a3-24eecb35a384\"></div>"
975-
],
976-
"text/plain": [
977-
"<IPython.core.display.HTML object>"
978-
]
979-
},
980-
"metadata": {},
981-
"output_type": "display_data"
884+
"name": "stdout",
885+
"output_type": "stream",
886+
"text": [
887+
"\n"
888+
]
982889
}
983890
],
984891
"source": [
@@ -1049,7 +956,7 @@
1049956
" </a>\n",
1050957
" <br/>A Web Map with critical infrastructure at risk from fires.<img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/maps16.png' style=\"vertical-align:middle;\" width=16 height=16>Web Map by api_data_owner\n",
1051958
" <br/>Last Modified: December 20, 2023\n",
1052-
" <br/>0 comments, 3 views\n",
959+
" <br/>0 comments, 5 views\n",
1053960
" </div>\n",
1054961
" </div>\n",
1055962
" "
@@ -1108,7 +1015,7 @@
11081015
{
11091016
"data": {
11101017
"text/plain": [
1111-
"'https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_01_19_18_33/FeatureServer/0'"
1018+
"'https://pythonapi.playground.esri.com/server/rest/services/Hosted/At_Risk_Infrastructure_2024_05_07_18_41_36/FeatureServer/0'"
11121019
]
11131020
},
11141021
"execution_count": 26,
@@ -1153,46 +1060,15 @@
11531060
},
11541061
{
11551062
"cell_type": "code",
1156-
"execution_count": 29,
1063+
"execution_count": 28,
11571064
"metadata": {},
11581065
"outputs": [
11591066
{
1160-
"data": {
1161-
"application/vnd.jupyter.widget-view+json": {
1162-
"model_id": "5bd88785e8ed4779a2c10a4fc2b70f94",
1163-
"version_major": 2,
1164-
"version_minor": 0
1165-
},
1166-
"text/plain": [
1167-
"MapView(layout=Layout(height='400px', width='100%'))"
1168-
]
1169-
},
1170-
"metadata": {},
1171-
"output_type": "display_data"
1172-
},
1173-
{
1174-
"data": {
1175-
"text/html": [
1176-
"<div class=\"map-static-img-preview-75cac55c-d38f-4a23-874e-ef577010e3be\"><img src=\"\"></img></div>"
1177-
],
1178-
"text/plain": [
1179-
"<IPython.core.display.HTML object>"
1180-
]
1181-
},
1182-
"metadata": {},
1183-
"output_type": "display_data"
1184-
},
1185-
{
1186-
"data": {
1187-
"text/html": [
1188-
"<div class=\"map-html-embed-preview-75cac55c-d38f-4a23-874e-ef577010e3be\"></div>"
1189-
],
1190-
"text/plain": [
1191-
"<IPython.core.display.HTML object>"
1192-
]
1193-
},
1194-
"metadata": {},
1195-
"output_type": "display_data"
1067+
"name": "stdout",
1068+
"output_type": "stream",
1069+
"text": [
1070+
"\n"
1071+
]
11961072
}
11971073
],
11981074
"source": [
@@ -1214,7 +1090,7 @@
12141090
},
12151091
{
12161092
"cell_type": "code",
1217-
"execution_count": 30,
1093+
"execution_count": 29,
12181094
"metadata": {},
12191095
"outputs": [],
12201096
"source": [
@@ -1223,7 +1099,7 @@
12231099
},
12241100
{
12251101
"cell_type": "code",
1226-
"execution_count": 31,
1102+
"execution_count": 30,
12271103
"metadata": {},
12281104
"outputs": [
12291105
{
@@ -1241,7 +1117,7 @@
12411117
" </a>\n",
12421118
" <br/><img src='https://pythonapi.playground.esri.com/portal/home/js/jsapi/esri/css/images/item_type_icons/featureshosted16.png' style=\"vertical-align:middle;\" width=16 height=16>Feature Layer Collection by api_data_owner\n",
12431119
" <br/>Last Modified: December 19, 2023\n",
1244-
" <br/>0 comments, 11 views\n",
1120+
" <br/>0 comments, 12 views\n",
12451121
" </div>\n",
12461122
" </div>\n",
12471123
" "
@@ -1250,7 +1126,7 @@
12501126
"<Item title:\"At_Risk_Infrastructure_source\" type:Feature Layer Collection owner:api_data_owner>"
12511127
]
12521128
},
1253-
"execution_count": 31,
1129+
"execution_count": 30,
12541130
"metadata": {},
12551131
"output_type": "execute_result"
12561132
}
@@ -1262,7 +1138,7 @@
12621138
},
12631139
{
12641140
"cell_type": "code",
1265-
"execution_count": 32,
1141+
"execution_count": 31,
12661142
"metadata": {},
12671143
"outputs": [],
12681144
"source": [
@@ -1271,7 +1147,7 @@
12711147
},
12721148
{
12731149
"cell_type": "code",
1274-
"execution_count": 33,
1150+
"execution_count": 32,
12751151
"metadata": {},
12761152
"outputs": [],
12771153
"source": [

0 commit comments

Comments
 (0)