I do not have ArcGIS desktop. And I have installed the ArcGIS Python API.

And I tried the following:

import arcgis
from arcgis.gis import GIS
from arcgis.mapping import WebMap
gis = GIS()
map1 = gis.map('Paris') # Passing a place name to the constructor
                        # will initialize the extent of the map.

No map displayed.

Why is that?

  • I dont know the arcgis-python-api but it looks like 'Paris' is just a string, like 'asdadas'. Shouldnt it be a variable or something else? Or arcgis_online.map("Paris")? (developers.arcgis.com/python/sample-notebooks/…)
    – BERA
    Dec 7, 2017 at 12:34
  • some said I need to use python -m arcgis.install to enable the map widget. But I don't know how to do that in Jupyter Notebook.
    – JOHN
    Dec 7, 2017 at 12:44
  • Cross-posted as stackoverflow.com/q/47694180/820534
    – PolyGeo
    Dec 9, 2017 at 12:04
  • Are you working with Anaconda or ArcGIS Pro? Dec 31, 2017 at 20:49
  • Anaconda. I dont have ArcGIS Pro
    – JOHN
    Jan 5, 2018 at 3:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.