-
Notifications
You must be signed in to change notification settings - Fork 4
Live execution of intro_for_model_developers_EXECUTED.ipynb
#528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
validbeck
merged 52 commits into
main
from
beck/sc-7406/replace-executed-intro-for-model-developers
Nov 26, 2024
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
e24ffaf
New intro_for_model_developers_EXECUTED.ipynb -secrets
validbeck 8b28889
Test adding validmind[llm]
validbeck f49eb8d
Added variables locally
validbeck 200ca8f
Adding dependencies
validbeck cfa5f33
Testing full page layout
validbeck 5a17749
Latest from vm-library & missing libraries?
validbeck a5436c0
That didn't work, ugh
validbeck 1b2b13b
I give up for today
validbeck 0ec32e2
NVM reverting to a version that worked in theory
validbeck 4dbccb3
Forgot comment
validbeck 32f4bbd
Adding rendered notebook output to .gitignore
validbeck 320ba95
SHAPGlobalImportance error workaround
validbeck bf61dab
updating shap version pls work
validbeck b7783ba
???
validbeck 2aab185
?
validbeck 66f79ad
.
validbeck 2840923
..
validbeck bdb6ae7
Final touches to the workflows
validbeck 98b445c
Updated .env.example
validbeck 54e9175
Tweaking freeze settings
validbeck cb61d67
Spellingggg
validbeck ca1c931
Local execution instructions in front matter
validbeck 746c288
Wow I forgot to add the changes
validbeck b4eadd9
Changing to ValidMind Academy model
validbeck 39ef1d1
Edited comments in notebook front matter
validbeck 5c92efa
Updated variables for mobile quirk
validbeck 8caa893
Added _quarto-notebooks.yml
validbeck d4e6cfb
Updated model, removed global execution & reverted deploy-prod & stag…
validbeck 2a24dc7
WIP moved notebook execution to its own workflow & removed front-matter
validbeck 18130ef
Commenting out execution for now & added exe-demo profile
validbeck 7288511
Added exe-staging & exe-prod
validbeck 14fd461
New single-source action for handling Quarto for rendering
validbeck e5cce37
Testing single-sourcing Fetch Quarto on demo
validbeck a393f70
Single-sourced AWS credentials
validbeck ee6cb06
Whoops moving the checkout back into the main workflow
validbeck f6b613e
Adding shell to the action file?
validbeck e860850
Cleaned up aws action files
validbeck 2d1fdad
Applied single-source to staging & prod workflows, testing AWS 1
validbeck 6d2c547
Hmmmmm
validbeck 8e23dd4
Trying one last time
validbeck bb75510
I give up, reverting to the old version
validbeck 205b22b
Test — if condition for site/notebook/ changes
validbeck 79de199
Test — if condition for site/notebook/ changes in an action
validbeck 29d510a
Hide navbar 4 executed notebook & clear quarto cache b4 execution
validbeck 67865b8
Testing a change to the executed notebook
validbeck cfab932
Trying again
validbeck 4e4ba91
Swapping where the secret lives
validbeck cece1aa
Applying same changes to staging & prod workflows/actions
validbeck 9d3283b
Removing clean command orz
validbeck c6949a7
No changes to site/notebooks
validbeck 68a91f1
Latest from vm-library
validbeck afb8f81
Oops forgot to pull from main first
validbeck File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,5 @@ | ||
| OPENAI_API_KEY=ADD_YOUR_KEY_HERE | ||
| OPENAI_API_KEY=ADD_YOUR_KEY_HERE | ||
|
|
||
| # API INFO TO RUN /notebooks/tutorials/intro_for_model_developers_EXECUTED.ipynb | ||
| PLATFORM_API_KEY=ADD_YOUR_API_KEY_HERE | ||
| PLATFORM_API_SECRET=ADD_YOUR_API_SECRET_HERE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Execute demo notebook | ||
| description: Installs python3, validmind, checks dependencies then executes ONLY the Intro for Model Developers notebook with development heap tracking | ||
|
|
||
| inputs: {} | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Install python3 for Jupyter Notebooks | ||
| shell: bash | ||
| run: | | ||
| python3 -m pip install jupyter | ||
| python -m pip install --upgrade pip | ||
|
|
||
| - name: Install validmind for notebook execution | ||
| shell: bash | ||
| run: | | ||
| pip install validmind | ||
| pip install validmind[llm] | ||
| pip install fairlearn aequitas | ||
| pip install shap==0.44.1 | ||
|
|
||
| - name: Check dependencies | ||
| shell: bash | ||
| run: | | ||
| pip install pycairo | ||
| pip check | ||
|
|
||
| - name: Execute ONLY the Intro for Model Developers notebook with heap development | ||
| shell: bash | ||
| run: | | ||
| cd site | ||
| quarto render --profile exe-demo notebooks/tutorials/intro_for_model_developers_EXECUTED.ipynb &> render_errors.log || { | ||
| echo "Execute for intro_for_model_developers_EXECUTED.ipynb failed"; | ||
| cat render_errors.log; | ||
| exit 1; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Fetch Quarto | ||
| description: Checks out repo then downloads & installs the latest version of Quarto | ||
|
|
||
| inputs: {} | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Get latest Quarto release URL | ||
| id: get-quarto-url | ||
| shell: bash | ||
| run: | | ||
| API_URL="https://api.github.com/repos/quarto-dev/quarto-cli/releases/latest" | ||
| DOWNLOAD_URL=$(curl -s $API_URL | jq -r '.assets[] | select(.name | endswith("linux-amd64.deb")).browser_download_url') | ||
| echo "DOWNLOAD_URL=$DOWNLOAD_URL" >> $GITHUB_ENV | ||
|
|
||
| - name: Download and install Quarto | ||
| shell: bash | ||
| run: | | ||
| wget ${{ env.DOWNLOAD_URL }} -O quarto-latest-linux-amd64.deb | ||
| sudo dpkg -i quarto-latest-linux-amd64.deb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Execute prod notebook | ||
| description: Installs python3, validmind, checks dependencies then executes ONLY the Intro for Model Developers notebook with production heap tracking | ||
|
|
||
| inputs: {} | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Install python3 for Jupyter Notebooks | ||
| shell: bash | ||
| run: | | ||
| python3 -m pip install jupyter | ||
| python -m pip install --upgrade pip | ||
|
|
||
| - name: Install validmind for notebook execution | ||
| shell: bash | ||
| run: | | ||
| pip install validmind | ||
| pip install validmind[llm] | ||
| pip install fairlearn aequitas | ||
| pip install shap==0.44.1 | ||
|
|
||
| - name: Check dependencies | ||
| shell: bash | ||
| run: | | ||
| pip install pycairo | ||
| pip check | ||
|
|
||
| - name: Execute ONLY the Intro for Model Developers notebook with heap production | ||
| shell: bash | ||
| run: | | ||
| cd site | ||
| quarto render --profile exe-prod notebooks/tutorials/intro_for_model_developers_EXECUTED.ipynb &> render_errors.log || { | ||
| echo "Execute for intro_for_model_developers_EXECUTED.ipynb failed"; | ||
| cat render_errors.log; | ||
| exit 1; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Execute staging notebook | ||
| description: Installs python3, validmind, checks dependencies then executes ONLY the Intro for Model Developers notebook with staging heap tracking | ||
|
|
||
| inputs: {} | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - name: Install python3 for Jupyter Notebooks | ||
| shell: bash | ||
| run: | | ||
| python3 -m pip install jupyter | ||
| python -m pip install --upgrade pip | ||
|
|
||
| - name: Install validmind for notebook execution | ||
| shell: bash | ||
| run: | | ||
| pip install validmind | ||
| pip install validmind[llm] | ||
| pip install fairlearn aequitas | ||
| pip install shap==0.44.1 | ||
|
|
||
| - name: Check dependencies | ||
| shell: bash | ||
| run: | | ||
| pip install pycairo | ||
| pip check | ||
|
|
||
| - name: Execute ONLY the Intro for Model Developers notebook with heap staging | ||
| shell: bash | ||
| run: | | ||
| cd site | ||
| quarto render --profile exe-staging notebooks/tutorials/intro_for_model_developers_EXECUTED.ipynb &> render_errors.log || { | ||
| echo "Execute for intro_for_model_developers_EXECUTED.ipynb failed"; | ||
| cat render_errors.log; | ||
| exit 1; | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| format: | ||
| html: | ||
| page-layout: full | ||
| navbar: false | ||
| code-tools: true | ||
| include-in-header: | ||
| - environments/heap-development.html | ||
| include-after-body: | ||
| - https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js | ||
| execute: | ||
| enabled: true | ||
| freeze: auto | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| format: | ||
| html: | ||
| page-layout: full | ||
| navbar: false | ||
| code-tools: true | ||
| include-in-header: | ||
| - environments/heap-production.html | ||
| include-after-body: | ||
| - https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js | ||
| execute: | ||
| enabled: true | ||
| freeze: auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| format: | ||
| html: | ||
| page-layout: full | ||
| navbar: false | ||
| code-tools: true | ||
| include-in-header: | ||
| - environments/heap-staging.html | ||
| include-after-body: | ||
| - https://unpkg.com/@jupyter-widgets/html-manager@*/dist/embed-amd.js | ||
| execute: | ||
| enabled: true | ||
| freeze: auto |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.