Code Execution
Run Python and R code safely, right from the agent.
How it works
The agent can run Python or R code on your machine. Code executes in an isolated environment with access to your workspace and local database. This is useful when the agent needs to do something beyond its built-in tools.
Use cases
- Custom analysis. Statistical models, ML inference, custom scoring
- Data transformation. Clean, reshape, and aggregate data
- Refresh scripts. Fetch live data for canvas bindings (stock prices, mutual fund data, custom APIs)
- Chart generation. Create charts and visualizations for embedding in frames
Python SDK
Jetro includes a lightweight Python SDK for refresh scripts:
bw.marketfor free stock market databw.mffor Indian mutual fund data