Scripts in Spotfire
Spotfire supports a number of execution environments for a several programming languages: JavaScript, Python, R, TERR, or IronPython scripts, and custom queries (different database query languages). In addition, a limited subset of HTML is available in text areas of Spotfire files.
This diagram demonstrates the following.
- Local Python script execution by Spotfire Analyst.
- Local TERR script execution by Spotfire Analyst.
- Local execution of IronPython from Spotfire Analyst, Spotfire Web Player, or Spotfire Automation Services.
- Remote TERR script execution on Spotfire® Statistics Services on behalf of Spotfire Analyst.
- Remote R script execution on Spotfire® Statistics Services on behalf of Spotfire Analyst.
- Remote TERR script execution on TERR service, on behalf of Spotfire Analyst, Spotfire Web Player, and Spotfire Automation Services.
- Remote Python script execution on Spotfire Service for Python on behalf of Spotfire Analyst.
- Remote R script execution on Spotfire Service for R on behalf of Spotfire Analyst.
- JavaScript execution on Spotfire Analyst and in a web browser (file opened in Spotfire Web Player).
- Remote R script execution on Spotfire Service for R, on behalf of Spotfire Analyst, Spotfire Web Player, and Spotfire Automation Services.
- Remote Python script execution on Spotfire Service for Python, on behalf of Spotfire Analyst, Spotfire Web Player, and Spotfire Automation Services.
Not pictured: Spotfire Web Player and Spotfire Automation Services execute a data function on Spotfire® Statistics Services.
Spotfire Statistics Services can support one of four types of scripts, but they are not all not described further in this document. Use TERR service and Spotfire Service for R instead of Spotfire Statistics Services to run TERR and R data functions from Spotfire Web Player and Spotfire Automation Services.
- Script Trust
Only members of the Script Author group can save Spotfire files with scripts that are marked as trusted. - Script Types
If the correct trust is in place, you can run any of these script types in Spotfire.
- Script Trust
Only members of the Script Author group can save Spotfire files with scripts that are marked as trusted. - Script Types
If the correct trust is in place, you can run any of these script types in Spotfire.