IDLE
IDLE that comes with ArcGIS Pro doesn't seem to autocomplete for ArcPy.
→ Solution: Python IDLE. Autocomplete / show completion doesn't work
Importing the same module with the same name into a python shell window to make it “visible” to the non-interactive IDLE editor.
Based on the above, you can make ArcPy autocomplete work with IDLE by the following method. --When the py file is opened with IDLE, open the Python Shell with "Run"-"Python Shell", execute ʻimport arcpy` on the shell, and then return to the py file edit screen.
Example of use in Visual Studio Code and Visual Studio 2017 Community.
→ How to use ArcPy from ArcGIS Pro from an integrated development environment
With Visual Studio, intellisense also works.
Visual Studio
Setting up Python/ArcPy with ArcGIS Pro and Visual Studio?
Prefix Path: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Interpreter Path: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe Windowed Interpreter: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\pythonw.exe Library Path: C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib Language Version: 3.5 Architecture: 64-bit
Recommended Posts