Wer bin ich eigentlich?

661
1
01-27-2023 04:51 AM
Labels (2)
Jan-Tschada
Esri Contributor
2 1 661

In einer ArcGIS Pro Python-Umgebung kann direkt auf die aktuell verbundene ArcGIS Online bzw. ArcGIS Enterprise Instanz zugegriffen werden. Dafür verwendet man einfach das Schlüsselwort 'home'. Die ArcGIS API for Python verwendet in einer ArcGIS Pro Python-Umgebung arcpy. Wenn man allerdings eine Python-Umgebung ohne arcpy verwendet, wird man mit einem Stacktrace belohnt.

from arcgis.gis import GIS

# Uses the current login of the ArcGIS Pro environment
# e.g. ArcGIS Pro authorized ArcGIS identiy, needs arcpy
gis = GIS('home')
gis.users.me

 

In einem Jupyter notebook erscheint mein Profil und bei euch?

Tags (1)
1 Comment
esride-nik
New Contributor III

Bei mir erscheint auch dein Profil! 😁  #kleinerscherz

Labels