Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook...

32
James Sill, Lu Zhang | Federal Science & Civilian Team [email protected] | [email protected] Data Science Using ArcGIS Notebooks

Transcript of Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook...

Page 1: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

James Sill, Lu Zhang | Federal Science & Civilian Team

[email protected] | [email protected]

Data Science Using ArcGIS Notebooks

Page 2: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Key Takeaways

• How Esri supports data science workflows

• How notebooks fit into the ArcGIS ecosystem

• Use cases of ArcGIS Notebooks

Page 3: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Agenda

• Introduction

• Notebooks within the ArcGIS Platform

- Notebooks in ArcGIS Online

- ArcGIS Notebook Server (Enterprise)

- Notebooks in ArcGIS Pro

• Key Workflows

• Q&A

Page 4: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Introduction

Page 5: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Spatial Analysis Data Science

Page 6: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Spatial Analysis Data Science

How some people describe it

Data Science

Page 7: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Spatial Analysis Data Science

How other people describe it

Spatial

Analysis

Page 8: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Spatial Analysis

Data Science

What it is

• Method > Interface

• Involves spatial data or

location

• A map is not always the

answer, but it usually

helps

• It is about the problem you are solving, not

about job titles

The overlap between spatial analysis and

data science

Page 9: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Analytical Tools in ArcGIS

• Maximum Likelihood

Classification

• Random Trees

• Support Vector Machine

Clustering

• Empirical Bayesian Kriging

• Areal Interpolation

• EBK Regression Prediction

• Ordinary Least Squares

Regression and

Exploratory Regression

• Geographically Weighted

Regression

• Forest Based Prediction• Spatially Constrained

Multivariate Clustering

• Multivariate Clustering

• Density-based Clustering

• Image Segmentation

• Hot Spot Analysis

• Cluster and Outlier Analysis

• Space Time Pattern Mining

Classification Prediction

Page 10: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

• Python is one of the most widely used programming languages.

• Contains a wide set of libraries for conducting Data Science and Analysis

Python

Web GIS

Administration

Content

Management

Analysis and

Data Science

Python + GIS use cases

Page 11: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

ArcPy

• Tools

• Functions

• Classes

• Modules

- Mapping – arcpy.mp

- Manipulate contents of ArcGIS Pro projects and layer

files

- Upgraded from arcpy.mapping

- Leverages Python 3.x

Desktop GIS Functionality

Page 12: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

ArcGIS API for Python

• On your Web GIS perform:

- GIS visualization

- Analysis

- Spatial data management

• Leverage SciPy ecosystem for

- Automating workflows

- Performing repetitive tasks

• Integrate with notebooks for interactive

scripting and visualization

Web GIS Python Functionality

Page 13: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Python Notebook / Jupyter

• Jupyter is open source software designed to support interactive data science and

scientific computing.

• It is browser based and lets you write, run, and document your code all in one place.

• Esri has included Jupyter alongside ArcGIS Pro for several years and the ArcGIS

API for Python was developed to make the most of Jupyter’s functionality.

Page 14: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Why Use Notebooks

• Storytelling: transparency and reproducibility

• Interactive / Provide Feedback on a cell by cell basis

• Access to our Python libraries: ArcPy and the ArcGIS API for Python

• Integration with ArcGIS, to promote collaboration and sharing

Page 15: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Expanding your workflow…

ArcGIS

Open SourcePython & Data Science

• ArcGIS API for Python

• ArcPy• Analytics

• Geoprocessing

• Web GIS analysis• GeoAnalytics*

• Raster Analytics*

Apps

DesktopAPIs

Page 16: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

ArcGIS Pro User Managed Environment

ArcPy

ArcGIS API

for Python

Python IDE

ArcGIS Notebooks

ArcPy

ArcGIS API

for Python

ArcGIS Enterprise

ArcGIS Online

How does ArcGIS Support Notebooks?

Integrated experience

within the Web GIS

ArcGIS Notebooks

ArcGIS API

for Python

Page 17: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

ArcGIS Notebook Server

(ArcGIS Online / Enterprise)

Page 18: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Licensing – ArcGIS Notebook Server

Standard Advanced

ArcGIS API for Python + 3rd

party Python libraries Standard + ArcPy libraries

Page 19: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Windows

Prerequisites

• HyperV

• Docker Desktop

- Docker must use Linux

containers

• Docker

- The specific version of

Docker will depend on the

OS selected

• Window Server 2016 (Standard or higher)

• Windows Server 2019

• Red Hat Enterprise

Linux Server 7

• Ubuntu LTS Server

16.04 or 18.04

Operating

Systems

• 8 GB RAM

• 50 GB disk space

• 8 GB RAM

• 50 GB on /var directory

Hardware

Requirements

• Chrome

• Firefox

• Edge

• Chrome

• Firefox

• Edge

Browsers

Linux

Page 20: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Conceptual Architecture

Portal

for ArcGIS

Hosting

Server

ArcGIS

Data Store

(relational + tile cache)

ArcGIS

Web Adaptor

ArcGIS

Web Adaptor

ArcGIS Notebook

Server

ArcGIS

Web Adaptor

User 1

User 2

User 3

One container, multiple open Notebooks

Base Deployment

Install and

configure Docker

on the same

machine as your

Notebook Server.

Page 21: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

End to End Workflow

ArcGIS Notebooks

Demo

Page 22: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Notebooks in ArcGIS ProNew in ArcGIS Pro 2.5

Page 23: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

ArcGIS Notebooks in ArcGIS Pro

• New to ArcGIS Pro 2.5 | All Editions

• Leverages ArcGIS Pro Python Environment

• Import / execute existing Python Notebooks files

Page 24: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

ArcGIS Notebooks in ArcGIS Pro

• Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation)

• Magic (%) and shell (!) commands are not supported in notebooks run from ArcGIS

Pro at ArcGIS Pro 2.5.

• ArcGIS Notebooks hosted with ArcGIS Enterprise are not supported directly

in ArcGIS Pro 2.5.

Page 25: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)
Page 26: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

What’s Next / Conclusion

Page 27: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Now

• Notebook Server Manager

• ArcGIS Notebooks in Online

- Beta now open!

• Notebooks in Pro

Mid to long term

• Versioning

• Notebooks as web tools

• Integration with ArcGIS Monitor

• More samples & tools

• Scheduling

Page 28: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Common Questions & Answers

Q. Installation / Architecture Related Questions..

A. Product Island @ Exhibit Hall

Page 29: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Q. Credit Consumption Rates for Notebooks in ArcGIS

Online

A. Basic: 3 credits an hour | GPU advanced ~ 20 credits an hour

- See Shannon Kalisky @ Product Island

Page 30: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Q. What Version of Python is supported within ArcGIS Notebooks?

A. Python 3.x

Page 31: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Print Your Certificate of Attendance

Print Stations Located in 150 Concourse Lobby

Tuesday12:30 pm – 6:30 pm

Expo

Hall B

5:15 pm – 6:30 pm

Expo Social

Hall B

Wednesday10:45 am – 5:15 pm

Expo

Hall B

6:30 pm – 9:30 pm

Networking Reception

Smithsonian National Museum

of Natural History

Page 32: Data Science Using ArcGIS Notebooks...ArcGIS Notebooks in ArcGIS Pro • Most Existing Notebook Functionality (Markdown, Autocompletion, Documentation) • Magic (%) and shell (!)

Download the Esri

Events app and find your event

Select the session

you attended

Scroll down to

“Survey”

Log in to access the

survey

Complete the survey

and select “Submit”

Please Share Your Feedback in the App