python api sandbox

718
2
04-13-2020 07:47 AM
SeanDoig
New Contributor II

Hi,

I'm sure I'm just missing something simple, but I'm getting nowhere so I figure I should just ask.

I want to try the ArcGIS API for Python in the live sandbox. I copied and pasted the code for in the "your_first_notebook" (Jupyter Notebook ). Everything looks good for the first 6 steps. Then I paste in:

#Create a new map object
map1 = gis.map()
#Focus the map to the part of the world containing the example item
map1.extent = example_item.extent
#Display the map
map1

And nothing happens. Shouldn't it display a map?

I also tried:

from arcgis.gis import GIS
gis = GIS()
map = gis.map("Paris")
map

from this thread (https://community.esri.com/thread/217346-map-is-not-showing-in-arcgis-api-for-python-demo-test ) and nothing happens. Actually that's not quite true. I will say that the Chrome console shows all sorts of errors.

Any help you can provide would be appreciated.

2 Replies
DanPatterson_Retired
MVP Emeritus

If you want an error, I got one... maybe the sandbox isn't ready for primetime (and nowhere obvious to change it python 3.6)

0 Kudos
SeanDoig
New Contributor II

Thank you. At least I don't feel like I'm going insane. Maybe someone from ESRI will weigh in with some info...

0 Kudos