Select to view content in your preferred language

Running geoprocessing tools in ArcGIS Python API

1280
6
Jump to solution
03-17-2022 02:54 PM
MichaelWen_Timmons
Occasional Contributor

Is there any way I can run these geoprocessing tools in ArcGIS Python API, like on a Notebook? 

arcpy.md.BuildMultidimensionalInfo

arcpy.management.CopyRaster

arcpy.management.AddRastersToMosaicDataset

 

0 Kudos
1 Solution

Accepted Solutions
AzinSharaf
Frequent Contributor

arcpy functions are not available in ArcGIS API for Python. If you get Notebook Server (Advanced edition I think), you would get both Arcpy and Python API on your notebooks.

View solution in original post

6 Replies
DanPatterson
MVP Esteemed Contributor

Did you try them in a notebook in Pro?

You can import arcpy and its tools in Jupyter notebooks


... sort of retired...
0 Kudos
MichaelWen_Timmons
Occasional Contributor

They work in Pro. I'd prefer to run them in a Jupyter Notebook on AGOL or in an Azure function.

AzinSharaf
Frequent Contributor

arcpy functions are not available in ArcGIS API for Python. If you get Notebook Server (Advanced edition I think), you would get both Arcpy and Python API on your notebooks.

DanPatterson
MVP Esteemed Contributor

Jupyter Notebook

JupyterLab

Jupyter QT console

all work for me

arcpy.png

the api either uses arcpy or shapely for geometry stuff.  If arcpy is installed it can be imported.  You just need a valid version of Pro


... sort of retired...
AzinSharaf
Frequent Contributor

it seems Michael wants to run it in AGOL or in an Azure function. 

0 Kudos
DanPatterson
MVP Esteemed Contributor

well it isn't a python question so I will move it to

  • ArcGIS API for Python Questions

until it is clarified


... sort of retired...
0 Kudos