A real-world polyglot analytics pipeline demonstrating Rust → Python → R → JavaScript integration using run-kit.
- Generate synthetic customer data in Rust
- Train a logistic regression model in Python (scikit-learn)
- Fit a statistical GLM in R with robust standard errors
- Generate an interactive HTML report with Plotly
git clone https://github.com/esubalew/run-kit-analytics.git
cd kit# Create .venv folder
python3 -m venv .venv
# Activate the environment
# macOS/Linux
source .venv/bin/activate
# Windows
.venv\Scripts\activate
# Install dependencies
pip install pandas scikit-learnOpen R and run:
install.packages(c("jsonlite", "sandwich", "lmtest"))cargo runThis will:
- Generate customer data (
data/customers.csv) - Train a Python logistic regression model
- Fit an R GLM model
- Produce
report.htmlwith interactive charts
After running, open the generated report:
open report.html # macOS
# or
xdg-open report.html # Linux
# or double-click on Windows- Blog post: Using Run-Kit to mix multiple languages in a single Rust codebase
- Detailed tutorial: Run-Kit Polyglot Analytics Pipeline