Skip To Content

Scripting in Insights

Note:

The Insights scripting environment is available in Insights Enterprise and Insights Local.

The scripting environment is currently in beta, but it is publicly available to all Insights Enterprise users.

Scripting is an important method of extending and customizing existing software to fit the needs of your organization. In Insights for ArcGIS, 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:

  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:

  • Manipulate and prepare data.
  • Create custom charts and graphs.
  • Integrate machine learning analysis into Insights.
  • Automate data updates and analysis.
  • Convert a dataset to a Pandas DataFrame.
  • Convert a Pandas DataFrame to a dataset and add it to the data pane.
  • Connect to databases that are not supported in Insights Enterprise.
  • Perform data analysis.

Capabilities of R scripting

R scripting can be used to do the following:

  • Manipulate and prepare data.
  • Create custom charts and graphs.
  • Perform advanced statistical analysis.
  • Convert a dataset to an R data frame.
  • Convert an R data frame to a dataset and add it to the data pane.
  • Connect to databases that are not supported in Insights Enterprise.
  • Perform data analysis.

Resources

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