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?

closed as unclear what you're asking by PolyGeo Oct 4 '15 at 2:25

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Are you saving the map document in your code before refreshing? – artwork21 Jun 11 '12 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 '12 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 '15 at 2:22

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. – matt wilkie Jun 11 '12 at 15:51

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