I want to view the output of ArcPy scripts (run in Python IDLE) in ArcMap.

I tried refreshing the ArcMap data frame after I run the script.

This does not work. Please advise me on this?

  • Are you saving the map document in your code before refreshing?
    – artwork21
    Jun 11, 2012 at 13:42
  • Changes to the data should work either way, but if you change the extent you'd have to save the map document.
    – Roy
    Jun 11, 2012 at 14:33
  • It is not clear from your question whether your script changes underlying data (if you try to do that while ArcMap is open I think you'll encounter a lock) or map properties. If you can edit your question to provide a code snippet then it will be much easier to try and advise.
    – PolyGeo
    Oct 4, 2015 at 2:22

1 Answer 1


Run your Python scripts in the built in Python window in ArcMap. Changes will be displayed if you make references to the "CURRENT" map document.

Python Window in ArcGIS

Refresh active view will help if you're interested in changing the extent, otherwise layers are generally added to the map automatically with the exception of feature layers.

  • 1
    I recommend clipping the image. As it is now it's a 90% white and featureless block and the actual area of interest is not legible. Jun 11, 2012 at 15:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.