Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Deploy with Anaconda

Vicki Cove edited this page Jul 28, 2023 · 4 revisions

Instructions for ArcGIS Insights 2020.2, 2020.3 or 2021.1 versions

  1. Install Anaconda

  2. Create a folder named gateway

  3. Copy selfsign.py into gateway folder

  4. Copy the insights-base.yml file into the gateway folder.

  5. Open Anaconda's command prompt and CD into the gateway folder

  6. Run below commands

    conda env create -f insights-base.yml
    conda activate insights-base
    python selfsign.py
  7. Start the Kernel Gateway:

  • Run this command if using Insights in ArcGIS Enterprise

    jupyter kernelgateway --KernelGatewayApp.ip=0.0.0.0 --KernelGatewayApp.port=9999 --KernelGatewayApp.allow_origin='*' --KernelGatewayApp.allow_credentials='*' --KernelGatewayApp.allow_headers='*' --KernelGatewayApp.allow_methods='*' --JupyterWebsocketPersonality.list_kernels=True --certfile=./server.crt --keyfile=./server.key
  • Run this command if using Insights Desktop

    jupyter kernelgateway --KernelGatewayApp.ip=0.0.0.0 --KernelGatewayApp.port=9999 --KernelGatewayApp.allow_origin='*' --KernelGatewayApp.allow_credentials='*' --KernelGatewayApp.allow_headers='*' --KernelGatewayApp.allow_methods='*' --JupyterWebsocketPersonality.list_kernels=True
  1. Open the kernel gateway url (usually, it's https://machine_name.domain_name.com:9999/api) in the browser before using it to connect in the Insights web application and bypass the security exceptions. Please refer to the bypassing security exceptions for Chrome, Safari and Firefox browsers.

  2. Optional: Stop Kernel Gateway by pressing Control-C in the running window or close the window

Note: If you would like to access your data in the scripting environment, create a data folder within gateway folder and put your files in it. Then, activate your conda environment after CD'ng into the data folder and run the appropriate gateway command to start the gateway.

Instructions for ArcGIS Insights 2021.2 or above versions

  1. Install Anaconda

  2. Create a folder named gateway

  3. Copy selfsign.py into gateway folder

  4. Copy the insights-latest.yml file into the gateway folder.

  5. Open Anaconda's command prompt and CD into the gateway folder

  6. Run below commands

    conda env create -f insights-latest.yml
    conda activate insights-latest
    python selfsign.py
  7. Start the Kernel Gateway:

  • Run this command if using Insights in ArcGIS Enterprise

    jupyter kernelgateway --KernelGatewayApp.ip=0.0.0.0 --KernelGatewayApp.port=9999 --KernelGatewayApp.allow_origin='*' --KernelGatewayApp.allow_credentials='*' --KernelGatewayApp.allow_headers='*' --KernelGatewayApp.allow_methods='*' --JupyterWebsocketPersonality.list_kernels=True --certfile=./server.crt --keyfile=./server.key
  • Run this command if using Insights Desktop

    jupyter kernelgateway --KernelGatewayApp.ip=0.0.0.0 --KernelGatewayApp.port=9999 --KernelGatewayApp.allow_origin='*' --KernelGatewayApp.allow_credentials='*' --KernelGatewayApp.allow_headers='*' --KernelGatewayApp.allow_methods='*' --JupyterWebsocketPersonality.list_kernels=True
  1. Open the kernel gateway url (usually, it's https://machine_name.domain_name.com:9999/api) in the browser before using it to connect in the Insights web application and bypass the security exceptions. Please refer to the bypassing security exceptions for Chrome, Safari and Firefox browsers.

  2. Optional: Stop Kernel Gateway by pressing Control-C in the running window or close the window

Note: If you would like to access your data in the scripting environment, create a data folder within gateway folder and put your files in it. Then, activate your conda environment after CD'ng into the data folder and run the appropriate gateway command to start the gateway.

Clone this wiki locally