Skip to content

Commit 12b82cc

Browse files
authored
Merge pull request #2174 from Esri/jy-rvw-pub-pkg
remove previous output and reformat add code
2 parents fbb8c53 + 3c91412 commit 12b82cc

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

samples/05_content_publishers/publishing_packages_as_web_layers.ipynb

+21-11
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,6 @@
6464
"metadata": {},
6565
"outputs": [
6666
{
67-
"data": {
68-
"text/plain": [
69-
"{'id': 'e5d78c5d26814691bcf539ba334dce72',\n",
70-
" 'title': 'packages',\n",
71-
" 'username': 'arcgis_python'}"
72-
]
73-
},
7467
"execution_count": null,
7568
"metadata": {},
7669
"output_type": "execute_result"
@@ -116,7 +109,13 @@
116109
}
117110
],
118111
"source": [
119-
"tpk_item = folder.add({\"title\": \"USA_counties_divorce_rate\", \"type\": \"Tile Package\"}, file='data/USA_counties_divorce_rate.tpk').result()\n",
112+
"tpk_item = folder.add(\n",
113+
" item_properties = {\n",
114+
" \"title\": \"USA_counties_divorce_rate\", \n",
115+
" \"type\": \"Tile Package\"\n",
116+
" }, \n",
117+
" file='data/USA_counties_divorce_rate.tpk'\n",
118+
").result()\n",
120119
"tpk_item"
121120
]
122121
},
@@ -213,7 +212,13 @@
213212
],
214213
"source": [
215214
"# upload vector tile package to the portal\n",
216-
"vtpk_item = folder.add({\"title\": \"World_earthquakes_2010\", \"type\": \"Vector Tile Package\"}, file='data/World_earthquakes_2010.vtpk').result()\n",
215+
"vtpk_item = folder.add(\n",
216+
" item_properties={\n",
217+
" \"title\": \"World_earthquakes_2010\", \n",
218+
" \"type\": \"Vector Tile Package\"\n",
219+
" }, \n",
220+
" file='data/World_earthquakes_2010.vtpk'\n",
221+
").result()\n",
217222
"vtpk_item"
218223
]
219224
},
@@ -321,7 +326,12 @@
321326
}
322327
],
323328
"source": [
324-
"slpk_item = folder.add({\"title\": \"World_earthquakes_2010\", \"type\": \"Scene Package\"}, file='data/World_earthquakes_2000_2010.slpk').result()\n",
329+
"slpk_item = folder.add({\n",
330+
" \"title\": \"World_earthquakes_2010\", \n",
331+
" \"type\": \"Scene Package\"\n",
332+
" }, \n",
333+
" file='data/World_earthquakes_2000_2010.slpk'\n",
334+
").result()\n",
325335
"slpk_item"
326336
]
327337
},
@@ -386,7 +396,7 @@
386396
"name": "python",
387397
"nbconvert_exporter": "python",
388398
"pygments_lexer": "ipython3",
389-
"version": "3.11.0"
399+
"version": "3.11.10"
390400
},
391401
"toc": {
392402
"base_numbering": 1,

0 commit comments

Comments
 (0)