Skip to content

Commit 8754ee1

Browse files
authored
fixes issue_6299 (Esri#1004)
updates all notebook with AGOL credentials by replacing AGOL credentials with GIS('home')
1 parent 6fa3062 commit 8754ee1

19 files changed

+41
-56
lines changed

guide/03-the-gis/using-the-gis.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"outputs": [],
4646
"source": [
47-
"gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"P@ssword123\")"
47+
"gis = GIS('home')"
4848
]
4949
},
5050
{
@@ -626,4 +626,4 @@
626626
},
627627
"nbformat": 4,
628628
"nbformat_minor": 0
629-
}
629+
}

guide/03-the-gis/working-with-different-authentication-schemes.ipynb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
],
121121
"source": [
122122
"print(\"ArcGIS Online Org account\") \n",
123-
"gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"P@ssword123\")\n",
123+
"gis = GIS('home')\n",
124124
"print(\"Logged in as \" + str(gis.properties.user.username))"
125125
]
126126
},
@@ -511,8 +511,7 @@
511511
"#Define 2 different profiles for two different urls\n",
512512
"playground_gis = GIS(url=\"https://pythonapi.playground.esri.com/portal\", username='arcgis_python', password='amazing_arcgis_123',\n",
513513
" profile='python_playground_prof')\n",
514-
"agol_gis = GIS(url=\"https://arcgis.com/\", username='arcgis_python', password=\"P@ssword123\",\n",
515-
" profile=\"AGOL_prof\")\n",
514+
"agol_gis = GIS('home')\n",
516515
"print(\"profile defined for {}\".format(playground_gis))\n",
517516
"print(\"profile defined for {}\".format(agol_gis))"
518517
]
@@ -616,4 +615,4 @@
616615
},
617616
"nbformat": 4,
618617
"nbformat_minor": 1
619-
}
618+
}

guide/04-feature-data-and-analysis/appending-features.ipynb

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,8 @@
100100
"source": [
101101
"### Make a GIS Connection\n",
102102
"\n",
103-
"The cell below is a generic placeholder to illustrate connecting to your GIS through a profile holding your specific credentials. This notebook accesses data shared within a particular ArcGIS Online Organization accessible with the following credentials:\n",
104-
"\n",
105-
"* url = https://www.arcgis.com\n",
106-
"* username = arcgis_python\n",
107-
"* password = P@ssword123\n",
108-
"\n",
109-
"So make a connection with the following syntax to continue running through the notebook:\n",
110-
"`gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"P@ssword123\")`"
103+
"You can make a GIS connection with the following syntax to continue running through the notebook:\n",
104+
"`gis = GIS(\"https://www.arcgis.com\", \"username\", \"password\")`"
111105
]
112106
},
113107
{
@@ -3412,4 +3406,4 @@
34123406
},
34133407
"nbformat": 4,
34143408
"nbformat_minor": 2
3415-
}
3409+
}

guide/08-using-geoprocessing-tools/accessing-geoprocessing-tools.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"outputs": [],
4545
"source": [
46-
"gis = GIS('https://www.arcgis.com', 'arcgis_python', 'P@ssword123')"
46+
"gis = GIS('home')"
4747
]
4848
},
4949
{
@@ -391,4 +391,4 @@
391391
},
392392
"nbformat": 4,
393393
"nbformat_minor": 1
394-
}
394+
}

guide/10-mapping-and-visualization/managing-offline-map-areas.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"source": [
3333
"from arcgis.gis import GIS\n",
3434
"from arcgis.mapping import WebMap\n",
35-
"gis = GIS(\"https://www.arcgis.com\",\"arcgis_python\",\"P@ssword123\")"
35+
"gis = GIS('home')"
3636
]
3737
},
3838
{
@@ -389,4 +389,4 @@
389389
},
390390
"nbformat": 4,
391391
"nbformat_minor": 1
392-
}
392+
}

guide/10-mapping-and-visualization/working-with-web-maps-and-web-scenes.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"from arcgis.gis import GIS\n",
2828
"\n",
2929
"# connect to your GIS\n",
30-
"gis = GIS(\"https://www.arcgis.com\",\"arcgis_python\",\"P@ssword123\")"
30+
"gis = GIS('home')"
3131
]
3232
},
3333
{
@@ -698,4 +698,4 @@
698698
},
699699
"nbformat": 4,
700700
"nbformat_minor": 1
701-
}
701+
}

guide/11-performing-network-analyses/part2_find_routes.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"cell_type": "markdown",
9595
"metadata": {},
9696
"source": [
97-
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'arcgis_python', 'P@ssword123', verify_cert=False, set_active=True)`"
97+
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'username', 'password', verify_cert=False, set_active=True)`"
9898
]
9999
},
100100
{
@@ -2248,4 +2248,4 @@
22482248
},
22492249
"nbformat": 4,
22502250
"nbformat_minor": 2
2251-
}
2251+
}

guide/11-performing-network-analyses/part3_generate_service_area.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"\n",
9292
"The first step to everything is always importing all required modules and establishing a GIS connection to ArcGIS Online organization or your enterprise for ArcGIS.\n",
9393
"\n",
94-
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'arcgis_python', 'P@ssword123', verify_cert=False, set_active=True)`"
94+
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'username', 'password', verify_cert=False, set_active=True)`"
9595
]
9696
},
9797
{
@@ -2349,4 +2349,4 @@
23492349
},
23502350
"nbformat": 4,
23512351
"nbformat_minor": 2
2352-
}
2352+
}

guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
"\n",
9191
"The first step to everything is always importing all required modules and establishing a GIS connection to ArcGIS Online organization or your enterprise for ArcGIS.\n",
9292
"\n",
93-
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'arcgis_python', 'P@ssword123', verify_cert=False, set_active=True)`"
93+
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'username', 'password', verify_cert=False, set_active=True)`"
9494
]
9595
},
9696
{
@@ -2079,4 +2079,4 @@
20792079
},
20802080
"nbformat": 4,
20812081
"nbformat_minor": 2
2082-
}
2082+
}

guide/11-performing-network-analyses/part5_generate_od_cost_matrix.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
"cell_type": "markdown",
132132
"metadata": {},
133133
"source": [
134-
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'arcgis_python', 'P@ssword123', verify_cert=False, set_active=True)`"
134+
"If you have already set up a profile to connect to your ArcGIS Online organization, execute the cell below to load the profile and create the GIS class object. If not, use a traditional username/password log-in e.g. `my_gis = GIS('https://www.arcgis.com', 'username', 'password', verify_cert=False, set_active=True)`"
135135
]
136136
},
137137
{
@@ -2526,4 +2526,4 @@
25262526
},
25272527
"nbformat": 4,
25282528
"nbformat_minor": 2
2529-
}
2529+
}

0 commit comments

Comments
 (0)