Skip to content

Workshop Pre Test

Joel McCune edited this page Feb 6, 2020 · 4 revisions

To be successful with the workflows GeoAI-Retail embodies, you must be able to perform a few steps with Conda and the CookieCutter project templating framework.

Clone a Conda Environment

All Python code execution in Pro is performed in a Conda environment installed with ArcGIS Pro. During the installation of ArcGIS Pro, Conda is installed with a default environment, arcgispro-py3, configured to use with ArcGIS Pro. This environment should not be changed. Rather, you should clone it, and make changes to the cloned environment for doing analysis work. Check this functionality by running the following command.

conda create --name arcgis --clone arcgispro-py3

Once this process completes, switch to this environment for the following command.

activate arcgis

You will know this new environment is active because the command prompt will be prefixed with the name of the environment in parentheses.

Install Conda Packages

The workshop depends on the functionality included in a few additional packages accessible from Anaconda. Most notable is the use of CookeCutter templating for project management. Hence, please test the ability to install packages using the following command.

conda install -c conda-forge cookiecutter git

Create a Test Project

With CookieCutter and Git packages installed from Anaconda, you now have everything installed to be able to attempt to create a new test project. First, navigate in the command prompt to a location where you have write permissions. Next, start a new project using the following command.

cookiecutter https://github.com/knu2xs/geoai-retail

You will be required to answer a few questions. For the purposes of testing, you can also simply accept the defaults to see if the project is created.

If you are able to successfully execute all the above steps, there is a high likelihood you have all the resources configured for a successful workshop!

Clone this wiki locally