<jupyter_start><jupyter_text>ArcGIS API for Python Demo: Hello ~~World~~ Map  Let's Get Started With Some Basics... Let's import the API...<jupyter_code>import arcgis
from IPython.display import display<jupyter_output><empty_output><jupyter_text>This is a GIS object. If we don't pass any parameters, it connects to the default GIS, ArcGIS Online.<jupyter_code>arcgis.gis.GIS()
gis = arcgis.gis.GIS()
gis
gis?
gis.map()<jupyter_output><empty_output><jupyter_text>This object is the entry point to your GIS. This lets you manage users, content, and also has a map widget:<jupyter_code>my_map = gis.map("Reston")<jupyter_output><empty_output><jupyter_text>The map widget is built on top of the ArcGIS JavaScript API but is added as a Jupyter Notebook extension.<jupyter_code>my_map<jupyter_output><empty_output><jupyter_text>That's a map of a cool place, but it's not very useful yet. Let's now search for content.<jupyter_code>gis.content.search()
gis.content.search
items = gis.content.search("Reston Hiking Trails", "feature layer")
items?
for item in items:
    display(item)<jupyter_output><empty_output><jupyter_text>I'll create a variable and assign it to the first item in the search result for hiking trails...<jupyter_code>hiking_trails_lyr = gis.content.search("Reston Hiking Trails", "feature layer")[0]<jupyter_output><empty_output><jupyter_text>Now we can add that layer to our map.<jupyter_code>my_map.add_layer(hiking_trails_lyr)
my_map.add_layer(hiking_trails_lyr)
my_map<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09894459102902374, 'fraction_numerical': 0.0006596306068601583, 'mean_word_length': 6.984210526315789, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '632301', 'license': 'Apache-2.0', 'n_tokens_mistral': 552, 'n_tokens_neox': 537, 'n_words': 148, 'path': 'talks/uc2018/ExperienceArcGISinNotebooks/1_Hello Map.ipynb', 'repo_name': 'nitz21/arcpy', 'size': '1516'}