Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
c48e68d
fixing markdown link
jonathan-taylor Apr 25, 2023
876717e
some work on readme
jonathan-taylor Apr 25, 2023
b8062d6
updating docs, and syncing sources
jonathan-taylor Apr 25, 2023
cb7fc72
added note for torch requirements
jonathan-taylor Apr 25, 2023
eb25cbd
updated api pages
jonathan-taylor Apr 25, 2023
f1c0802
np.bool->bool
jonathan-taylor Apr 25, 2023
c7656dc
using sphinx book theme
jonathan-taylor Apr 25, 2023
30277fc
BF: fit_encoder and warning about sparse for OneHot
jonathan-taylor Apr 25, 2023
2223585
logo file
jonathan-taylor Apr 25, 2023
001054c
commenting out the nb kernel name
jonathan-taylor Apr 25, 2023
cda040c
trying to use rpy2
jonathan-taylor Apr 25, 2023
ac5c68c
putting rpy2 in docs requirements
jonathan-taylor Apr 25, 2023
e84eec5
using r-base ubuntu package
jonathan-taylor Apr 25, 2023
eed8f43
fixing yaml
jonathan-taylor Apr 25, 2023
dd48846
removing jupyter requirement
jonathan-taylor Apr 25, 2023
0b0496d
fixing PCA notebook
jonathan-taylor Apr 25, 2023
f8b3ff2
fixing kernel in PCA notebook
jonathan-taylor Apr 25, 2023
7d14784
consistent running of encoder on a dataframe
jonathan-taylor Apr 25, 2023
acd3d36
fixup install page
jonathan-taylor Apr 25, 2023
667ad84
moved build_submodel from method to function
jonathan-taylor Apr 25, 2023
fa99dc3
cleanup some notebooks
jonathan-taylor Apr 25, 2023
92d5e0c
update link in readme
jonathan-taylor Apr 25, 2023
950e2db
using default_rng if None supplied
jonathan-taylor Apr 25, 2023
5298353
moving tests out of source tree
jonathan-taylor Apr 25, 2023
720189f
cleanup some packaging issues
jonathan-taylor Apr 25, 2023
68a248e
fixing kernel_name
jonathan-taylor Apr 25, 2023
663450e
reference to plotting dendrogram example
jonathan-taylor Apr 25, 2023
e1708a0
cleanup imdb example
jonathan-taylor Apr 25, 2023
ff42bd8
index of anova df
jonathan-taylor Apr 25, 2023
3b79c74
updating install torch requirements
jonathan-taylor Apr 25, 2023
cb8cee2
master->main
jonathan-taylor Apr 25, 2023
ac505c0
bumping sklearn minimum for onehotencoder sparse_output
jonathan-taylor Apr 26, 2023
1679280
removing ipynb_checkpoints
jonathan-taylor Apr 26, 2023
ed6abd0
minimum sklearn version
jonathan-taylor Apr 26, 2023
db6158f
putting a max pandas version due to bug in lifelines
jonathan-taylor Apr 26, 2023
d477e45
updated install instructions
jonathan-taylor May 2, 2023
b36eef7
update README
jonathan-taylor May 2, 2023
13b8191
more updates to windows
jonathan-taylor May 2, 2023
62e3366
updating doc link
jonathan-taylor May 2, 2023
b74d5b8
updating installation docs
jonathan-taylor May 2, 2023
506b695
BF: rnp.float -> float
jonathan-taylor Jul 18, 2023
b55ddae
adding notebooks to package docs
jonathan-taylor Jul 25, 2023
25b5ab7
including Auto data
jonathan-taylor Jul 25, 2023
4287e08
remove numbering
jonathan-taylor Jul 25, 2023
e497e71
update requirements
jonathan-taylor Jul 25, 2023
3860e68
Adding colab link
jonathan-taylor Jul 26, 2023
b399ab2
fix_labs script to modify lab 2,6
jonathan-taylor Jul 26, 2023
d5c88a4
also building helpers and datasets so they are populated on github
jonathan-taylor Jul 26, 2023
d44e6e6
cleaned up labs, colab button added
jonathan-taylor Jul 26, 2023
5cccd68
update readthedocs
jonathan-taylor Jul 26, 2023
b1ac032
make it pre_build instead of pre_install
jonathan-taylor Jul 26, 2023
500715b
adding jupytext
jonathan-taylor Jul 26, 2023
d147f51
removing labs from library repo, they are in a submodule
jonathan-taylor Jul 26, 2023
c978d67
updating ISLP_labs; removing notebooks dir
jonathan-taylor Jul 26, 2023
1657d3e
BF: fix errors in calls to pytorch_lightning methods since PDF
jonathan-taylor Jul 30, 2023
a2867fa
adding jupytext for readthedocs build
jonathan-taylor Jul 30, 2023
66650ff
revert to the original name
jonathan-taylor Jul 30, 2023
81cfa6d
update submodule, v2 in install instructions
jonathan-taylor Jul 30, 2023
e5b66c8
requirements in library are not frozen
jonathan-taylor Jul 30, 2023
26d363d
Merge pull request #1 from intro-stat-learning/v2_devel
jonathan-taylor Jul 30, 2023
99700bc
Create pylint.yml
jonathan-taylor Jul 30, 2023
ea1965c
Create python-package-conda.yml
jonathan-taylor Jul 30, 2023
a5fed84
back to v1 for docs/ISLP_labs so that readthedocs shows v1 labs
jonathan-taylor Jul 30, 2023
399cde6
fix links to frozen environments
jonathan-taylor Jul 30, 2023
d088c9a
get frozen reqs from docs/ISLP_labs
jonathan-taylor Jul 30, 2023
9722810
executed version of IMDB
jonathan-taylor Jul 30, 2023
8328bb0
remove keras requirement
jonathan-taylor Jul 30, 2023
c38ce52
Update python-package-conda.yml
jonathan-taylor Jul 30, 2023
3015be9
updating docs
jonathan-taylor Jul 30, 2023
0c5dc9e
fixing flake errors
jonathan-taylor Jul 31, 2023
81b9346
Update python-package-conda.yml
jonathan-taylor Jul 31, 2023
fab27dd
test the hitters part of deep learning lab
jonathan-taylor Jul 31, 2023
226e40f
deep learning test
jonathan-taylor Jul 31, 2023
cce6660
use importlib.resources instead of pkg_resources
jonathan-taylor Jul 31, 2023
5d085d3
using context manager
jonathan-taylor Jul 31, 2023
305e0f2
BF: a few indents, missed context manager
jonathan-taylor Jul 31, 2023
3095606
added labs bit to workflow
jonathan-taylor Jul 31, 2023
6ff4a02
update workflows
jonathan-taylor Jul 31, 2023
46e2195
Create test-labs.yml
jonathan-taylor Jul 31, 2023
5f16131
test labs workflow
jonathan-taylor Jul 31, 2023
d6d08ac
removing workflow
jonathan-taylor Jul 31, 2023
97dfb56
removing pylint workflow
jonathan-taylor Jul 31, 2023
bd0af34
update to info.py, fixing github link and short description
jonathan-taylor Aug 4, 2023
55ee527
updating info.py with torch requirements; updating requirements.txt, …
jonathan-taylor Aug 6, 2023
d2efc5a
updating ISLP_labs
jonathan-taylor Aug 6, 2023
7d2a6b1
moved requirements
jonathan-taylor Aug 6, 2023
4b56304
updated python version for rtd
jonathan-taylor Aug 6, 2023
9c52700
jupytext already in docs requirements
jonathan-taylor Aug 6, 2023
5fcfaad
added execute to nbconvert
jonathan-taylor Aug 6, 2023
5726b67
update to version v2 for docs
jonathan-taylor Aug 6, 2023
11355e2
unused commit; update to rtd
jonathan-taylor Aug 6, 2023
75c343f
remove execute, let sphinx do it
jonathan-taylor Aug 6, 2023
df4347a
Update README.md
jonathan-taylor Aug 6, 2023
8ff350c
unused torch requirements; they are in main requirements except those…
jonathan-taylor Aug 6, 2023
0a0c7f2
removing unused pip requirements
jonathan-taylor Aug 6, 2023
b62d819
two missing torch dependencies
jonathan-taylor Aug 6, 2023
10a9b29
tab / whitespace
jonathan-taylor Aug 6, 2023
e7e57cb
testing v2_devel with renamed notebooks
jonathan-taylor Aug 8, 2023
2be34bd
back to v2
jonathan-taylor Aug 8, 2023
732e04d
BF labs.rst
jonathan-taylor Aug 8, 2023
ed8ab7e
v2_devel->v2 in install doc
jonathan-taylor Aug 8, 2023
2425f9b
Developing actions (#3)
jonathan-taylor Aug 9, 2023
bdbec37
always return a two-dimensional column with _get_clumn (#4)
jonathan-taylor Aug 16, 2023
7780420
building notebooks on linux and macos
jonathan-taylor Aug 20, 2023
8b16f04
max numpy requirement for numba
jonathan-taylor Aug 20, 2023
4298d88
use requirements.txt
jonathan-taylor Aug 20, 2023
a06fc82
remove whitespace
jonathan-taylor Aug 20, 2023
d65db3a
switching to pyproject.toml
jonathan-taylor Aug 20, 2023
c75e501
install torch deps only at test step
jonathan-taylor Aug 20, 2023
c3d9d73
versioneer package
jonathan-taylor Aug 20, 2023
2e15e4a
removed redundant requirements.txt
jonathan-taylor Aug 20, 2023
8e4aecf
installing from checked out git repo
jonathan-taylor Aug 20, 2023
08c279e
moving requirements
jonathan-taylor Aug 20, 2023
8fae3b6
install jupyter for lab
jonathan-taylor Aug 20, 2023
5852a8f
syntax error
jonathan-taylor Aug 20, 2023
36dbddb
updating to setup-python action
jonathan-taylor Aug 20, 2023
08a0823
changing path of artifact
jonathan-taylor Aug 20, 2023
bcc9ef1
whitespace
jonathan-taylor Aug 20, 2023
0868b12
trying to fix path of lab
jonathan-taylor Aug 20, 2023
8447c02
only want build lab
jonathan-taylor Aug 20, 2023
630174e
path updates to workflows
jonathan-taylor Aug 20, 2023
5f5b0d3
Devel docs (#5)
jonathan-taylor Aug 20, 2023
01e63d7
V0.3.19rc (#6)
jonathan-taylor Aug 21, 2023
431ea2d
v0.3.19 for docs
jonathan-taylor Aug 21, 2023
60084b7
use json for version
jonathan-taylor Aug 21, 2023
0206c2c
whitespace in toc
jonathan-taylor Aug 21, 2023
8a3f16d
dont build labs on doc build
jonathan-taylor Aug 21, 2023
ffbc097
trying to upload actions due to deprecation warning
jonathan-taylor Aug 21, 2023
3b14084
run Ch06
jonathan-taylor Aug 21, 2023
0251c65
updating ISLP_labs
jonathan-taylor Aug 21, 2023
bfe4f2b
need to use f-strings
jonathan-taylor Aug 21, 2023
070e688
BF: wasn't catching Ch06 correctly
jonathan-taylor Aug 21, 2023
8a0a69b
moving docs to v2.1 from v2.1rc
jonathan-taylor Aug 21, 2023
01a4d54
small edit to workflow
jonathan-taylor Aug 21, 2023
98d98ff
script to make a sequence of notebooks with a given set of requiremen…
jonathan-taylor Aug 22, 2023
60bdbd9
updating lab version
jonathan-taylor Aug 22, 2023
416e03c
updating ISLP_labs
jonathan-taylor Aug 22, 2023
dfc0148
making sure Ch06 runs in proper requirements
jonathan-taylor Aug 22, 2023
7462cb1
cleanup the fix script
jonathan-taylor Aug 22, 2023
3ee6034
missing dir
jonathan-taylor Aug 22, 2023
18efaa3
comment on labs/library version
jonathan-taylor Aug 22, 2023
f2f6cba
BF: fix of notebooks seems to have not synced
jonathan-taylor Aug 22, 2023
a2b1cbb
rm_md flag
jonathan-taylor Aug 22, 2023
e5928fd
BF: redundant extension
jonathan-taylor Aug 22, 2023
a7a1d72
smaller int to fit under int32
jonathan-taylor Aug 30, 2023
96b8cc9
windows test
jonathan-taylor Aug 30, 2023
78b81f9
instructions fix; added windows test
jonathan-taylor Aug 30, 2023
95db9ef
clarify install
jonathan-taylor Aug 30, 2023
f523248
clarifying python version
jonathan-taylor Oct 7, 2023
78b6604
adding link to zip archive, update version
jonathan-taylor Oct 7, 2023
2c45489
V0.3.20rc (#8)
jonathan-taylor Oct 7, 2023
e346384
merge conflic
jonathan-taylor Oct 7, 2023
ed7c99f
incrementing version in pyproject.toml
jonathan-taylor Oct 7, 2023
5897f5d
minor doc tweak
jonathan-taylor Oct 7, 2023
8f66bf3
adding license
jonathan-taylor Oct 11, 2023
579166b
update pyproject
jonathan-taylor Oct 11, 2023
c7f3ed9
adding authors
jonathan-taylor Oct 17, 2023
02bbd0f
Update README.md
danielawitten Nov 6, 2023
19e7fb2
docs: add danielawitten as a contributor for code, and content (#11)
allcontributors[bot] Nov 9, 2023
eb17725
docs: add trevorhastie as a contributor for code, and content (#12)
allcontributors[bot] Nov 9, 2023
f6b64e2
docs: add tibshirani as a contributor for code, and content (#14)
allcontributors[bot] Nov 9, 2023
c4c3e3d
gui install note
jonathan-taylor Nov 14, 2023
fc829b8
updating setup.py for distutils deprecation
jonathan-taylor Nov 14, 2023
18e95bc
update install instructions
jonathan-taylor Nov 14, 2023
3ebd239
ensuring boolean columns get cast to float for statsmodels
jonathan-taylor Jan 18, 2024
f265fc7
updating version
jonathan-taylor Jan 18, 2024
97fb1fe
Setup work (#18)
jonathan-taylor Jan 18, 2024
ee22986
incrementing lab version
jonathan-taylor Jan 18, 2024
8fbadc7
fix versioneer
jonathan-taylor Jan 18, 2024
6306805
dynamic version
jonathan-taylor Jan 18, 2024
6beb419
casting categorical to array
jonathan-taylor Mar 19, 2024
c50b45b
Remove upper bound version constraint on `numpy` dependency (#27)
architkulkarni Jun 4, 2024
7bb8fa4
Fix warning: Passing html literal strings is deprecated. (#24)
debnath-d Jun 4, 2024
a956573
cast to np.array before prediction (#20)
allispaul Jun 4, 2024
8101362
removing fixed version in pyproject.toml
jonathan-taylor Jun 4, 2024
a63f9b5
uncapping pandas version
jonathan-taylor Jun 4, 2024
21d1724
switch to 3.12 for tests
jonathan-taylor Jun 4, 2024
9ee31b7
ignoring torch tests for mac
jonathan-taylor Jun 4, 2024
c2e55b2
addressing a typecast warning from pandas
jonathan-taylor Jun 4, 2024
8f730ac
address sklearn fit_params warning
jonathan-taylor Jun 4, 2024
a96b93e
Cleanup data files (#29)
jonathan-taylor Jun 4, 2024
e446479
changed default_encoders to categorical_encoders (#30)
jonathan-taylor Jun 4, 2024
38dbd08
Svm plot (#28)
jonathan-taylor Jun 4, 2024
0a96723
update to v4 artifacts
jonathan-taylor Jun 5, 2024
de02742
trying to use Nose 20.x
jonathan-taylor Jun 5, 2024
c428449
don't need node for setup-python
jonathan-taylor Jun 5, 2024
dba19c1
update labs to v2.2
jonathan-taylor Jun 5, 2024
04e21d8
updating docs json file
jonathan-taylor Jun 5, 2024
1587e59
commiting python3.12 change
jonathan-taylor Dec 19, 2024
707a2fe
removing node for checkout
jonathan-taylor Dec 19, 2024
e4657bf
loosening numpy and pandas versions
jonathan-taylor May 30, 2024
a5d54b3
fixes to build requirements
jonathan-taylor Feb 1, 2026
273a727
simplifying setup.py, logic in pyproject.toml
jonathan-taylor Feb 1, 2026
4281ada
fixing _estimator_type flags
jonathan-taylor Feb 1, 2026
4d9f028
feat: Add scikit-learn estimator type tags
jonathan-taylor Feb 2, 2026
2beabce
removing redundant setup.py
jonathan-taylor Feb 2, 2026
bcd8598
unused pkg_resources import
jonathan-taylor Feb 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"commitType": "docs",
"commitConvention": "angular",
"contributors": [
{
"login": "danielawitten",
"name": "danielawitten",
"avatar_url": "https://avatars.githubusercontent.com/u/12654191?v=4",
"profile": "https://github.com/danielawitten",
"contributions": [
"code",
"content"
]
},
{
"login": "trevorhastie",
"name": "trevorhastie",
"avatar_url": "https://avatars.githubusercontent.com/u/13293253?v=4",
"profile": "https://web.stanford.edu/~hastie/",
"contributions": [
"code",
"content"
]
},
{
"login": "tibshirani",
"name": "tibshirani",
"avatar_url": "https://avatars.githubusercontent.com/u/2848609?v=4",
"profile": "https://github.com/tibshirani",
"contributions": [
"code",
"content"
]
}
],
"contributorsPerLine": 7,
"skipCi": true,
"repoType": "github",
"repoHost": "https://github.com",
"projectName": "ISLP",
"projectOwner": "intro-stat-learning"
}
85 changes: 85 additions & 0 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# This builds and deploys ISLP docs

name: Build docs

# Controls when the workflow will run
on:
workflow_dispatch:
inputs: null

# A workflow run is made up of one or more jobs that can run
# sequentially or in parallel

jobs: # This workflow contains a single
# job called "build"

build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.12'
cache: 'pip'
# Install
- name: Install dependencies
run: |
sudo apt-get install r-base
pip install -r docs/requirements.txt
pip install .

# Checkout labs
- name: Checkout version of labs
run: |
git submodule update --init --force docs/ISLP_labs
cd docs
mkdir -p source/labs
cp ISLP_labs/Ch*nb source/labs
python fix_and_clear_notebooks.py source/labs/Ch*nb --rm_md
python make_notebooks.py --inplace --requirements=ISLP_labs/requirements.txt source/labs/Ch06-varselect-lab.ipynb
rm source/labs/Ch*md

- name: Make docs
run: |
cd docs
make html

# Store the output
- name: Upload docs
uses: actions/upload-artifact@v4
with:
name: ISLP_docs
path: docs/build/html
retention-days: 5

deploy:
runs-on: ubuntu-latest
needs: build

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{steps.deployment.outputs.page_url}}

steps:
- uses: actions/download-artifact@master
with:
name: ISLP_docs
path: .
- uses: actions/configure-pages@v4
with:
node-version: 20.x
- uses: actions/upload-pages-artifact@v3
with:
node-version: 20.x
path: .
- id: deployment
uses: actions/deploy-pages@main
105 changes: 105 additions & 0 deletions .github/workflows/build_notebook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# This is a basic workflow to help you get started with Actions

name: Build a notebook

# Controls when the workflow will run
on:
workflow_dispatch:
inputs:
LABS:
description: 'Labs version'
required: true
default: 'v2'
type: string
ID:
description: 'Which lab to build'
required: true
default: '03'
type: string

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

# Install
- name: Install dependencies
run: |
pip install .
pip install jupyterlab

# Runs a set of commands using the runners shell
- name: Build notebook
env:
LABS: ${{ inputs.LABS }}
ID: ${{ inputs.ID }}
run: |
git clone https://github.com/intro-stat-learning/ISLP_labs.git
cd ISLP_labs
git checkout $LABS
cp Ch*$ID*lab.ipynb ..
jupyter nbconvert --execute --inplace ../Ch*$ID*lab.ipynb
jupyter nbconvert --to html ../Ch*$ID*lab.ipynb

# Store the output
- name: Upload labs
env:
ID: ${{ inputs.ID }}
uses: actions/upload-artifact@v3
with:
name: ISLP_labs
path: Ch*
retention-days: 1

build-mac:
# The type of runner that the job will run on
runs-on: macos-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

# Install
- name: Install dependencies
run: |
pip install .
pip install jupyterlab

# Runs a set of commands using the runners shell
- name: Build notebook
env:
LABS: ${{ inputs.LABS }}
ID: ${{ inputs.ID }}
run: |
git clone https://github.com/intro-stat-learning/ISLP_labs.git
cd ISLP_labs
git checkout $LABS
cp Ch*$ID*lab.ipynb ..
jupyter nbconvert --execute --inplace ../Ch*$ID*lab.ipynb
jupyter nbconvert --to html ../Ch*$ID*lab.ipynb

# Store the output
- name: Upload labs
env:
ID: ${{ inputs.ID }}
uses: actions/upload-artifact@v3
with:
name: ISLP_labs
path: Ch*
retention-days: 1
104 changes: 104 additions & 0 deletions .github/workflows/build_notebook_errors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
# This is a basic workflow to help you get started with Actions

name: Build a notebook (allow errors, capture result)

# Controls when the workflow will run
on:
workflow_dispatch:
inputs:
LABS:
description: 'Labs version'
required: true
default: 'v2'
type: string
ID:
description: 'Which lab to build'
required: true
default: '02'
type: string

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:

build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

# Install
- name: Install dependencies
run: |
pip install .

# Runs a set of commands using the runners shell
- name: Build notebook, allowing errors
env:
LABS: ${{ inputs.LABS }}
ID: ${{ inputs.ID }}
run: |
git clone https://github.com/intro-stat-learning/ISLP_labs.git
cd ISLP_labs
git checkout $LABS
cp Ch*$ID*lab.ipynb ..
jupyter nbconvert --execute --inplace ../Ch*$ID*lab.ipynb --allow-errors
jupyter nbconvert --to html ../Ch*$ID*lab.ipynb

# Store the output
- name: Upload labs
env:
ID: ${{ inputs.ID }}
uses: actions/upload-artifact@v3
with:
name: ISLP_labs
path: Ch*
retention-days: 1

build-mac:
# The type of runner that the job will run on
runs-on: macos-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'

# Install
- name: Install dependencies
run: |
pip install .

# Runs a set of commands using the runners shell
- name: Build notebook, allowing errors
env:
LABS: ${{ inputs.LABS }}
ID: ${{ inputs.ID }}
run: |
git clone https://github.com/intro-stat-learning/ISLP_labs.git
cd ISLP_labs
git checkout $LABS
cp Ch*$ID*lab.ipynb ..
jupyter nbconvert --execute --inplace ../Ch*$ID*lab.ipynb --allow-errors
jupyter nbconvert --to html ../Ch*$ID*lab.ipynb

# Store the output
- name: Upload labs
env:
ID: ${{ inputs.ID }}
uses: actions/upload-artifact@v3
with:
name: ISLP_labs
path: Ch*
retention-days: 1

Loading