AnsweredAssumed Answered

How to choose the ArcGIS Pro Python environment used by Jupyter Notebook?

Question asked by Andrew.Rudin@austintexas.gov_austin on Jul 16, 2019
Latest reply on Jul 16, 2019 by Andrew.Rudin@austintexas.gov_austin

I am trying to get going with Jupyter Notebooks and the ArcGIS API for Python, but I'm having some problems with the version installed with ArcGIS Pro 2.4.  I know that in Pro you can create multiple Python environments, and you can activate which one is used by the project via the GUI by going to Project->Python.  I saw that Pro 2.4 installs the ArcGIS API version 1.6.1...however the API website shows 1.6.2 is the latest.  I created a clone of the default environment and upgraded the API using these instructions.  When I go back into Pro I can see the clone environment has arcgis api version 1.6.2, and it is the active version for my project.


The problem is, when I open the Jupyter Notebooks provided on the Start Menu under ArcGIS, I believe it is using the default environment and not my upgraded one.  I don't see anything on the Jupyter Notebook interface that tells me which environment is being used.  To check, I created a new notebook and entered the following code: 

import arcgis


The result says 1.6.1, therefore I assume it's using the default environment.



Any advice on how to get the Jupyter Notebook to use my clone environment?  I'm trying to stick with the out of the box tools installed with Pro