Scripting in Insights

Scripting is an important method of extending and customizing existing software to fit the needs of your organization. In ArcGIS Insights, scripting can be done using Python or R as the programming language. Both programming languages will enable users to expand the available spatial and statistical analysis capabilities within an Insights workbook.

Scripting in Insights is enabled using a connection to a Jupyter Kernel Gateway. The kernel gateway provides access to the required kernels, or programming languages, that execute the code written in the scripting environment. The gateway allows access to both Python and R kernels.

The following general steps must be followed to enable scripting in Insights:

Steps:
  1. Set up a Jupyter Kernel Gateway that contains a Python kernel, an R kernel, or both.
  2. Create a connection to the Jupyter Kernel Gateway in Insights.
  3. Open the scripting environment.
  4. Create and execute scripts in Python or R.

Capabilities of Python scripting

Python scripting can be used to do the following:

Capabilities of R scripting

R scripting can be used to do the following:

Resources

Use the following resources to learn more about scripting in Insights: