4.1 Python code in ArcGIS Pro¶
Convert model to Python script¶
Model created in Model Builder
(see lesson
3) may be converted to Python script. This
can be useful at a time when the Model Builder's functionality is no
longer sufficient to solve your problem.
Export model into Python script ...
... and continue coding in your favourite IDE.
Notebooks¶
Another possibility is to use the integrated environment of the Jupyter Notebook.
Note
Jupyter Notebook is an open-source, web-based interactive computing environment that allows users to create and share documents containing live code, equations, visualizations, and text. It supports multiple programming languages, with Python being the most popular. Jupyter is widely used for data science, machine learning, and scientific computing.
In Insert
tab choose New Notebook
ArcPy package allows to access data and run any tool available in ArcGIS Pro.
ArcPy is a Python package developed by Esri for performing geographic data analysis, data conversion, and automation within ArcGIS. It provides tools for working with geodata, allowing users to script geoprocessing workflows and automate tasks in ArcGIS Pro.