intro-stat-learning/ISLP_labs
intro-stat-learning/ISLP_labs has 1,424 GitHub stars and 825 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-08 05:38 UTC. Last push 2026-10-26.
Up-to-date version of labs for ISLP
Measured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalISLP_labs
Authors
Trevor Hastie
Gareth James
Jonathan Taylor
Robert Tibshirani
Daniela Witten
ISLP
Please ensure you have followed the installation instructions for ISLP. This will address installation of jupyterlab if necessary, which is not included as a requirement of the labs.
Up-to-date version of labs for ISLP.
This repo will track labs for ISLP as their source code changes. The
intent is that building a virtual environment with
requirements.txt will reproduce the results in this repo.
To install the current version of the requirements run
uv pip install -r https://raw.githubusercontent.com/intro-stat-learning/ISLP_labs/v2.2.5/requirements.txt;
The labs can now be run via:
uv run jupyter lab Ch02-statlearn-lab.ipynb
Zip / tarball
You can download all the labs as a .zip or .tar.gz here
Setup script
We've added a setup script that ensures precisely the desired labs are checked out along with a uv virtual environment being created. Follow
these instructions:
To set up a local environment to run the notebooks for a specific version of the labs, you can use the setup_notebook_env.py script. This script will create a directory, download the labs, and set up a Python virtual environment with all the necessary packages.
Prerequisites
This script relies on uv for managing Python environments. If you don't have uv installed, you can install it using pipx or cargo:
Using
pipx(recommended):pip install pipx pipx ensurepath pipx install uvUsing
cargo(if you have Rust installed):cargo install uv
For more detailed installation instructions, please refer to the uv documentation.
Instructions
1. Download the setup script
You can find the raw Python script here: setup_notebook_env.py
To download and run it, first ensure uv is installed (see Prerequisites above), then execute the following commands in your terminal:
curl -LO https://raw.githubusercontent.com/intro-stat-learning/ISLP_labs/main/setup_notebook_env.py
uv run python setup_notebook_env.py --outdir ISLP --commit v2.2.5 --python-version 3.12
--outdir ISLP: This will create a directory namedISLPfor your labs.--commit v2.2.5: This specifies that you want to use versionv2.2.5of the labs.
3. Activate the environment
Once the script is finished, you can activate the virtual environment to run other notebooks or work with the lab materials.
On macOS and Linux:
source ISLP/.venv/bin/activateOn Windows:
ISLP\.venv\Scripts\activate
4. Run other notebooks
After activating the environment, you can start Jupyter Lab to run other notebooks.
jupyter lab
R Markdown files
Earlier versions of this repo maintained R Markdown versions of the lab next to the Jupyter notebooks. These have been removed from the repo but can be built from the notebooks at any time by
make Rmd
Contributors ✨
Thanks goes to these wonderful people (emoji key):
tibshirani 💻 🖋 |
trevorhastie 💻 🖋 |
danielawitten 💻 🖋 |
Thomas Schmelzer 💻 |
Jonathan Taylor 💻 🖋 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,890 starspublic-apis/public-apis
A collective list of free APIs
497,126 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
442,020 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,169 stars