BLOG
|
Hi Dan, Two quick follow up questions, 1) Is the shortcut a link between Jupyter and Spyder? and 2) if so I'm not seeing how that is done from the above blog material, can you point me? Thanks, Eric
... View more
01-08-2018
01:58 PM
|
0
|
0
|
365
|
BLOG
|
Hi Dan, You gave me hand with an IDE issue where I tried to adopt PyCharm for ARCGIS API development. I was able to get Spyder up and going, which really didn't involve anything more than launching it as all the dependencies already in place. Unfortunately having the same problem as the PyCharm IDE, where the output is unable to be generated. I have tried two different output (from the same Notebook sample codebase). Specifically, import arcgis from arcgis.gis import GIS ago_gis = GIS() search_subset = ago_gis.content.search("NYC_taxi_subset", item_type = "Feature Layer") subset_item = search_subset[0] subset_item Should pop up; Tried taking different approach by trying to generate pandas data frame import arcgis from arcgis.gis import GIS ago_gis = GIS() search_subset = ago_gis.content.search("NYC_taxi_subset", item_type = "Feature Layer") subset_item = search_subset[0] subset_feature_layer = subset_item.layers[0] query_result = subset_feature_layer.query(where = 'OBJECTID < 5', out_fields = "*", returnGeometry = False) att_data_frame = query_result.df att_data_frame Should generate the following table (cut off some columns to left); Like PyCharm the code runs but no output. have you been able to get any sort of visual output from executing python code against the ARCGIS API? Just wondering as it seems that no IDE except Jupyter can do that. Thanks, Eric
... View more
01-08-2018
09:38 AM
|
0
|
0
|
365
|
POST
|
Well it is a work in progress, and it will probably get easier as time goes on. Tomorrow going to get Spyder up and going.
... View more
01-07-2018
07:38 PM
|
0
|
0
|
411
|
POST
|
My contention is that the way the IDEs on the "getting started page" are presented dramatically understate the gap between the extent to which the sample code can be implemented versus how they are realized in the use of JN. If Jupyter Notebooks is the only true end to end development environment for the API, they should just say so. It would save new users significant time to know that not all (or maybe any of) the IDEs that they link to are in fact capable of providing the kind of end to end functionality that would make them viable alternatives. The fact that you can't view output is a very significant short coming. Why even link to the Anaconda page with the IDE list? You just set people up for a lot of frustration. I have been dealing with ESRI for a long time and unfortunately this is typical of how things roll with them.
... View more
01-07-2018
07:36 PM
|
0
|
0
|
3401
|
POST
|
The last things I will say about this problem is make a suggestion that ESRI edit the Getting Started section of the online documentation regarding the use of IDEs. Specifically, on the page; Python in ArcGIS Pro—ArcPy Get Started | ArcGIS Desktop Under the section; Python IDEs They should note that while many IDEs may work seamlessly with conda, they don't allow you to fully develop across the API. It may be that ESRI doesn't want to have to keep up with all the recent IDE developments, and that is fine so long as they note that not all results represented in the notebook examples may be reproducible in some IDEs (here generating the output). As it is they post a link to the Anaconda site, that lists "acceptable" IDEs and that is what most people will be running off of.
... View more
01-07-2018
02:05 PM
|
0
|
4
|
3401
|
POST
|
Hi Dan and Joshua, Appreciate your insights. I will move on to Spyder and set it up according to the blog information. I now have a better understanding of the limits of PyCharm. Look forward to getting more familiar with ArcPro and the API. Thanks, Eric
... View more
01-06-2018
10:17 PM
|
0
|
0
|
3401
|
POST
|
Thanks for getting in touch. I am running the code through an interpreter. In PyCharm I opened a new project, and selected python.exe within the arcgispro-py3 environment (using the option within PyCharm to select an interpreter within a conda environment). When I then view the properties of the selected interpreter, all of the packages associated with the arcgispro-py3 environment get listed. I am very new to all of this so hopefully this addresses your question.
... View more
01-06-2018
12:09 PM
|
0
|
2
|
3401
|
POST
|
Hi, Learning ArcGIS Pro (2.0), as well as the new API. I have been able to get Jupyter Notebooks going and run the sample code from index | ArcGIS for Developers . I wanted to use PyCharm as an alternative IDE to Jupyter and I have it also running. I was able to run this section of code (from the NYC Cab demonstration notebook ) in PyCharm successfully, as indicated that it can back with a code of 0 . import arcgis
from arcgis.gis import GIS
ago_gis = GIS() # Connect to ArcGIS Online as an anonymous user
search_subset = ago_gis.content.search("NYC_taxi_subset", item_type = "Feature Layer")
subset_item = search_subset[0]
subset_item
subset_map = ago_gis.map("New York, NY", zoomlevel=11)
subset_map
subset_map.add_layer(subset_item)
subset_feature_layer = subset_item.layers[0]
# query the attribute information. Limit to first 5 rows.
query_result = subset_feature_layer.query(where = 'OBJECTID < 5',
out_fields = "*",
returnGeometry = False)
att_data_frame = query_result.df # get as a Pandas dataframe
att_data_frame However none of the maps were displayed nor the table, which gets loaded into the dataframe. I have tried this code in a new Jupyter Notebook and the maps don't get displayed but the table does. I'm wondering why the differences between the three IDE locations, in terms of the varying output. Thanks, Eric
... View more
01-06-2018
10:17 AM
|
0
|
10
|
10642
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|