diff --git a/samples/your_first_notebook.ipynb b/samples/your_first_notebook.ipynb index c41176937a..88716470f5 100644 --- a/samples/your_first_notebook.ipynb +++ b/samples/your_first_notebook.ipynb @@ -74,9 +74,7 @@ { "cell_type": "code", "execution_count": 1, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "from arcgis.gis import GIS" @@ -94,9 +92,7 @@ { "cell_type": "code", "execution_count": 2, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "gis = GIS()" @@ -112,9 +108,7 @@ { "cell_type": "code", "execution_count": 3, - "metadata": { - "collapsed": true - }, + "metadata": {}, "outputs": [], "source": [ "public_content = gis.content.search(\"Fire\", item_type=\"Feature Layer\", max_items=5)" @@ -137,11 +131,11 @@ { "data": { "text/plain": [ - "[,\n", - " ,\n", - " ,\n", - " ,\n", - " ]" + "[,\n", + " ,\n", + " ,\n", + " ,\n", + " ]" ] }, "execution_count": 4, @@ -172,23 +166,23 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " Natuurrampen\n", + " Satellite (VIIRS) Thermal Hotspots and Fire Activity\n", " \n", - "
Deze service toont de typen 'Natuurbrand' en 'Aardbeving' uit het thema 'Natuurrampen' van de risicokaartFeature Layer Collection by Esri_NL_Content\n", - "
Last Modified: September 07, 2017\n", - "
0 comments, 4,133 views\n", + "
Global Thermal activity detected by the VIIRS sensors on the NOAA/NASA Suomi NPP, NOAA-20, and NOAA-21 satellites during the last 7 days.
Feature Layer Collection by esri_livefeeds2\n", + "
Last Modified: July 22, 2026\n", + "
111 comments, 160452947 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -199,23 +193,23 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " Collier County Emergency Services\n", + " USA Current Wildfires\n", " \n", - "
Emergency Facilities in Collier CountyFeature Layer Collection by philsherman_collierbcc\n", - "
Last Modified: May 22, 2014\n", - "
0 comments, 4,436 views\n", + "
This layer shows wildfires that have been updated within the past 7 days in the United States from IRWIN and NIFC information.
Feature Layer Collection by esri_livefeeds2\n", + "
Last Modified: July 22, 2026\n", + "
342 comments, 364672064 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -226,23 +220,23 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " Intact Forest Landscapes (2000)\n", + " Satellite (MODIS) Thermal Hotspots and Fire Activity\n", " \n", - "
Identifies the world’s last remaining unfragmented forest landscapes, large enough to retain all native biodiversity and showing no signs of human alteration as of the year 2013. This layer also shows the reduction in the extent of Intact Forest Landscapes from 2000 to 2013.Feature Layer Collection by GlobalForestWatch\n", - "
Last Modified: October 20, 2017\n", - "
0 comments, 1,979 views\n", + "
Global thermal activity detected by the MODIS sensors on the NASA Aqua and Terra satellites during the last 48 hours and 7 days.
Feature Layer Collection by esri_livefeeds2\n", + "
Last Modified: July 22, 2026\n", + "
41 comments, 129598632 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -253,23 +247,23 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " Fire Perimeters\n", + " USA Weather Watches and Warnings\n", " \n", - "
Current calendar year fire perimeters in California from GeoMACFeature Layer Collection by cferner_CALFIRE\n", - "
Last Modified: October 24, 2017\n", - "
0 comments, 16,841 views\n", + "
A live data feed from the National Weather Service containing official weather warnings, watches, and advisory statements for the United States.
Feature Layer Collection by esri_livefeeds2\n", + "
Last Modified: June 05, 2026\n", + "
140 comments, 384604905 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -280,23 +274,23 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " WRI_BeforeAndAfterPhotos\n", + " USA Fire Burned Areas 1984 - 2022\n", " \n", - "
WRI Projects with Before and After PhotosFeature Layer Collection by BuckEhler\n", - "
Last Modified: February 13, 2017\n", - "
0 comments, 9,340 views\n", + "
Archive of fire polygons in the USA from 1984 - 2022 from the USGS and US Forest Service's Monitoring Trends in Burn Severity program. (Retiring)
Feature Layer Collection by esri_landscape2\n", + "
Last Modified: April 06, 2026\n", + "
8 comments, 11163286 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -327,23 +321,23 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " Natuurrampen\n", + " Satellite (VIIRS) Thermal Hotspots and Fire Activity\n", " \n", - "
Deze service toont de typen 'Natuurbrand' en 'Aardbeving' uit het thema 'Natuurrampen' van de risicokaartFeature Layer Collection by Esri_NL_Content\n", - "
Last Modified: September 07, 2017\n", - "
0 comments, 4,133 views\n", + "
Global Thermal activity detected by the VIIRS sensors on the NOAA/NASA Suomi NPP, NOAA-20, and NOAA-21 satellites during the last 7 days.
Feature Layer Collection by esri_livefeeds2\n", + "
Last Modified: July 22, 2026\n", + "
111 comments, 160452947 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -364,50 +358,39 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "metadata": {}, "outputs": [ { "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "3e8faae9fbc34104b7e4ce7dfb2640b5" - } + "text/html": [ + "" + ], + "text/plain": [ + "" + ] }, + "execution_count": 8, "metadata": {}, - "output_type": "display_data" + "output_type": "execute_result" } ], "source": [ "#Create a new map object\n", "map1 = gis.map()\n", - "#Focus the map to the part of the world containing the example item\n", - "map1.extent = example_item.extent\n", - "#Display the map\n", + "# Add content to the map\n", + "map1.content.add(example_item)\n", + "# Show the map\n", "map1" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "You can now add your example item to the map you just created." - ] - }, - { - "cell_type": "code", - "execution_count": 8, - "metadata": { - "collapsed": true - }, - "outputs": [], - "source": [ - "map1.add_layer(example_item)" - ] - }, { "cell_type": "markdown", "metadata": { - "collapsed": true + "collapsed": true, + "jupyter": { + "outputs_hidden": true + } }, "source": [ "## Congratulations!\n", @@ -417,7 +400,7 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -431,7 +414,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.2" + "version": "3.13.13" }, "toc": { "base_numbering": 1, @@ -448,5 +431,5 @@ } }, "nbformat": 4, - "nbformat_minor": 1 + "nbformat_minor": 4 }