Samples

These samples demonstrate various features of the ArcGIS Python API. The samples are categorized by the user profile they are most relevant to. Each sample is in the form of a Jupyter Notebook, that can be viewed online, or downloaded and run interactively.

Download and run the sample notebooks

To run the sample notebooks locally, you need the ArcGIS Python API installed on your computer. See the Getting Started section in the Guide to learn how to download and run the API.

Once the API is installed, you can download the samples either as an archive or clone the arcgis-python-api GitHub repository.

Next, extract the archive if you downloaded as an archive then open your terminal application and enter the directory with the samples. Then start Jupyter notebook application. Refer to Using the Jupyter Notebook environment tutorial in the Guide for instructions on how to do this and to get yourself familiar with the notebook environment.

List of sample notebooks

The sample notebooks contain Python code along with narrative text and rich media (images, videos, widgets, etc). The output from code execution is captured and presented along with the code, using rich media representations. This makes the notebook format a great way to record the steps of your analysis, and present and share the results of your analysis with others.

The samples illustrate some of the following functionality (and much more):

Power Users / Developers

  • Using the GIS
  • The Map widget and it's Basemaps
  • Geoprocessing and the Mystery Plane
  • Using the Geometry service
  • Smart Mapping

Org Administrators

  • Faces of GIS
  • Batch creation of Groups
  • Clone Portal Users, Groups and Content

GIS Analysts and Data Scientists

  • Analyze New York city taxi data
  • Chennai Floods Analysis
  • Creating Hurricane Tracks using BigData Analytics
  • Creating Raster Information Product using Raster GeoAnalytics
  • Fighting California forest fires using spatial analysis

Content Publishers

  • HTML table to Pandas dataframe to Portal Item
  • Creating Raster Information Product using Raster GeoAnalytics
  • Publishing SDs, Shapefiles and CSVs
  • Publishing web maps and web scenes
  • Using and updating GIS content

Feedback on this topic?