How pathitharun/ds-lab works
DS-Lab is a browser-based data science learning library centered on selecting an experiment and running its notebook cells. The browser presents experiment material and routes cell execution through a native persistent Python server when available, with Pyodide as the documented in-browser fallback; results include text, errors, tables, and plots. The README also documents downloadable lab PDFs and offline datasets. The sampled excerpts show the native API and parts of both execution paths, but not the full experiment UI or routing, so those links are included only where documented.
Main entry points: server.py Native API server · script.js Cell runner · index.html Library interface · iris.csv Offline datasets
Components 15
Learning library
- Library interface
index.html - Experiment UI and routing
script.js
Python execution
- Cell runner
script.js - Native API server
server.py - Persistent Python runtime
server.py - Pyodide runtime
script.js - Results display
script.js - DataFrame rendering
server.py - Plot capture
server.py - Static asset serving
server.py
Learning resources
- Offline datasets
iris.csv - Customer dataset
mall_customers.csv - Lab PDFs
pdfs - Saved plot images
assets/plots
Other components
- Student
Connections 16
- Student → Library interface: uses
README.md - Library interface → Experiment UI and routing: loads interface
README.md - Student → Experiment UI and routing: selects experiments
- Experiment UI and routing → Cell runner: runs cells
script.js - Cell runner → Native API server: posts code
script.js - Native API server → Persistent Python runtime: dispatches code
server.py - Persistent Python runtime → DataFrame rendering: renders tables
server.py - Persistent Python runtime → Plot capture: captures plots
server.py - Cell runner → Pyodide runtime: fallback executes
README.md - Native API server → Results display: returns results
- Pyodide runtime → Results display: renders results
script.js - Native API server → Static asset serving: serves assets
server.py - Student → Lab PDFs: downloads manuals
README.md - Student → Saved plot images: views plots
- Student → Offline datasets: uses in experiments
- Student → Customer dataset: uses in experiment