Friday, 13 October 2017

arcpy - Using IPython if set ArcGIS's python as default kernel in spyder?


i install anaconda first then set the arcgis python 2.7.8 win32 as interpreter just like Importing arcpy in Spyder said,but why i cannot open my IPython then?



Answer



I am not sure if you set the arcpy paths correctly, but this is how I did to import arcpy into Spyder. To set the path of arcpy, go to Tools -> PYTHONPATH Manager and add the following paths:




  1. C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcToolbox\Scripts

  2. C:\Program Files (x86)\ArcGIS\Desktop10.3\arcpy

  3. C:\Program Files (x86)\ArcGIS\Desktop10.3\bin


It will should be like this:


enter image description here


I could use IPython without any problem.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...