Skip to content

Commit 411cefa

Browse files
author
Shivani Pathak
committed
minor changes
1 parent 9e0f0fe commit 411cefa

File tree

1 file changed

+55
-10
lines changed

1 file changed

+55
-10
lines changed

samples/02_power_users_developers/building_a_change_detection_app_using_jupyter_dashboard.ipynb

Lines changed: 55 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"gis = GIS()\n",
103103
"\n",
104104
"# search for the landsat multispectral imagery layer\n",
105-
"landsat_item = gis.content.search(\"title:Multispectral Landsat owner:esri\", 'Imagery Layer')[0]\n",
105+
"landsat_item = gis.content.search(\"Landsat Multispectral tags:'Landsat on AWS','landsat 8'\", 'Imagery Layer', outside_org=True)[0]\n",
106106
"landsat = landsat_item.layers[0]\n",
107107
"df = None"
108108
]
@@ -156,7 +156,7 @@
156156
{
157157
"data": {
158158
"application/vnd.jupyter.widget-view+json": {
159-
"model_id": "656dfde1d361429a8c01db7128793365",
159+
"model_id": "1c12f7e1249a40ccb0d061918296b779",
160160
"version_major": 2,
161161
"version_minor": 0
162162
},
@@ -218,8 +218,53 @@
218218
{
219219
"cell_type": "code",
220220
"execution_count": 3,
221-
"metadata": {},
222-
"outputs": [],
221+
"metadata": {
222+
"extensions": {
223+
"jupyter_dashboards": {
224+
"version": 1,
225+
"views": {
226+
"grid_default": {
227+
"col": 0,
228+
"height": 14,
229+
"hidden": false,
230+
"row": 8,
231+
"width": null
232+
},
233+
"report_default": {
234+
"hidden": false
235+
}
236+
}
237+
}
238+
}
239+
},
240+
"outputs": [
241+
{
242+
"data": {
243+
"application/vnd.jupyter.widget-view+json": {
244+
"model_id": "b703afd120cf4910805d42ed7cd503fe",
245+
"version_major": 2,
246+
"version_minor": 0
247+
},
248+
"text/plain": [
249+
"MapView(layout=Layout(height='400px', width='100%'))"
250+
]
251+
},
252+
"metadata": {},
253+
"output_type": "display_data"
254+
},
255+
{
256+
"data": {
257+
"text/html": [
258+
"<div class=\"map-static-img-preview-b5b2064c-1892-41ba-858f-08ad61cabcc0\"><img src=\"\"></img></div>"
259+
],
260+
"text/plain": [
261+
"<IPython.core.display.HTML object>"
262+
]
263+
},
264+
"metadata": {},
265+
"output_type": "display_data"
266+
}
267+
],
223268
"source": [
224269
"m = gis.map(location.value)\n",
225270
"m.add_layer(landsat)\n",
@@ -276,7 +321,7 @@
276321
{
277322
"data": {
278323
"application/vnd.jupyter.widget-view+json": {
279-
"model_id": "efeb52e228414e2f9f4f2ff1331e361a",
324+
"model_id": "d7ee88266192439ea44340034518fa26",
280325
"version_major": 2,
281326
"version_minor": 0
282327
},
@@ -344,7 +389,7 @@
344389
{
345390
"data": {
346391
"application/vnd.jupyter.widget-view+json": {
347-
"model_id": "d59edf6efedf4e7199ed9d9b8f9a84ed",
392+
"model_id": "b1047c76ff4c4f208287958888eafe8d",
348393
"version_major": 2,
349394
"version_minor": 0
350395
},
@@ -403,7 +448,7 @@
403448
},
404449
{
405450
"cell_type": "code",
406-
"execution_count": 8,
451+
"execution_count": 6,
407452
"metadata": {
408453
"code_folding": [
409454
0
@@ -460,14 +505,14 @@
460505
" if len(tdf) > 1:\n",
461506
" update_sliders(tdf)\n",
462507
"\n",
463-
" #m.draw(tdf.iloc[oldslider.value].SHAPE)\n",
508+
" # m.draw(tdf.iloc[oldslider.value].SHAPE)\n",
464509
" \n",
465510
" return tdf"
466511
]
467512
},
468513
{
469514
"cell_type": "code",
470-
"execution_count": 9,
515+
"execution_count": 7,
471516
"metadata": {
472517
"extensions": {
473518
"jupyter_dashboards": {
@@ -537,7 +582,7 @@
537582
{
538583
"data": {
539584
"application/vnd.jupyter.widget-view+json": {
540-
"model_id": "fb69da8c6f714ec49a9dcbb01f515aa1",
585+
"model_id": "769cc179c32344dd83ef566564efb402",
541586
"version_major": 2,
542587
"version_minor": 0
543588
},

0 commit comments

Comments
 (0)