223k views
5 votes
Which code would you implement to view contents from a GIS in an ArcGIS notebook?

a) Type the search result's variable name in the notebook cell.
b) Iterate through the GIS object's contents.
c) Type the find result's variable name in the notebook cell.
d) Call the list method on the GIS object.

1 Answer

4 votes

Final answer:

To view contents from a GIS in an ArcGIS notebook, you would implement the code option d) Call the list method on the GIS object.

Step-by-step explanation:

To view contents from a GIS in an ArcGIS notebook, you would implement the code option d) Call the list method on the GIS object. This will return a list of all the contents in the GIS. Here's an example:

gis = GIS('url', 'username', 'password')
contents = gis.content.list()
for item in contents:
 print(item)

User Ed Chin
by
7.9k points