PROBLEM
In some instances, when right-clicking Python files, the 'Edit with IDLE' and 'Run with ArcGIS Pro' options are not available in the context menu.
The following are the possible causes:
Select one of the options below depending on the cause to resolve the issue.
Select python.exe as the default application to open Python files
C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3
Add the registry keys
Warning: The instructions below include making changes to essential parts of the operating system. Esri recommends performing a backup of the operating system and files, including the registry, before proceeding. Esri cannot guarantee results from incorrect modifications while following these instructions. Exercise caution. Consult a qualified computer system professional if necessary.
Note: Replace Python27 and ArcGIS10.7 with the appropriate versions if needed.
Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Python.File\shell\Edit with IDLE\command] @="\"C:\\Python27\\ArcGIS10.7\\pythonw.exe\" \"C:\\Python27\\ArcGIS10.7\\Lib\\idlelib\\idle.pyw\" -e \"%1\"" [HKEY_CLASSES_ROOT\Python.NoConFile\shell\Edit with IDLE\command] @="\"C:\\Python27\\ArcGIS10.7\\pythonw.exe\" \"C:\\Python27\\ArcGIS10.7\\Lib\\idlelib\\idle.pyw\" -e \"%1\""
C:\Python27
The following image displays the availability of Edit with IDLE, Edit with IDLE (ArcGIS Pro), and Run with ArcGIS Pro options in the context menu.
Article ID: 000024926
Get help from ArcGIS experts
Download the Esri Support App