HOW TO
Instead of running a separate instance of Jupyter Notebook for different Python environments, it is possible to install a kernel with a specific Python environment in Jupyter Notebook. The environment is then configured when creating a new notebook.
To install a kernel with a specific Python environment in Jupyter Notebook, follow the steps described below:
Note: The Python Command Prompt window opens with the active default Python environment.
python -m ipykernel install --user --name <python environment> --display-name "Python (<python environment>)"
Installed kernelspec <python environment> in C:\Users\<user>\AppData\Roaming\jupyter\kernels\<python environment>
The image below shows the command and response in the Python Command Prompt window. The name of the Python environment used in this example is arcgispro-py3-clone1.
Alternatively, manually create a new kernel with a specific Python environment in the kernels folder.
C:\Users\<Username>\AppData\Roaming\jupyter\kernels
{ "argv": [ "C:\Users\<user>\AppData\Local\ESRI\conda\envs\<python environment>\python.exe", "-m", "ipykernel_launcher", "-f", "{connection_file}" ], "display_name": "Python (<python environment>)", "language": "python" }
Get help from ArcGIS experts
Download the Esri Support App