Skip to content

Commit

Permalink
refactor(notebook): move code to standard python
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher committed Sep 3, 2024
1 parent 1075a64 commit 5366a31
Show file tree
Hide file tree
Showing 8 changed files with 1,179 additions and 1,052 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/update-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ jobs:
# copy dependencies
cp -f ./node_modules/plotly.js/dist/plotly.min.js ./gh-pages/plotly.js
- name: Update
- name: Convert notebook
env:
DASHBOARD_AUR_REPOS: sunshine,sunshine-bin,sunshine-git
CODECOV_TOKEN: ${{ secrets.CODECOV_API_TOKEN }}
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }}
DISCORD_INVITE: ${{ secrets.DISCORD_INVITE }}
Expand All @@ -74,13 +75,8 @@ jobs:
FACEBOOK_TOKEN: ${{ secrets.FACEBOOK_ACCESS_TOKEN }}
GITHUB_REPOSITORY_OWNER: ${{ secrets.GH_ORG_NAME }}
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN || secrets.GITHUB_TOKEN }}
PATREON_CAMPAIGN_ID: 6131567
READTHEDOCS_TOKEN: ${{ secrets.READTHEDOCS_TOKEN }}
run: |
python -u ./src/update.py
- name: Convert notebook
env:
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN || secrets.GITHUB_TOKEN }}
run: |
jupyter nbconvert \
--debug \
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ A Jupyter notebook that creates a dashboard for viewing LizardByte repository da
```bash
find . -name '*.ipynb' -exec nb-clean clean {} \;
```

Or for a single notebook:
```bash
nb-clean clean ./notebook/dashboard.ipynb
```

2. You can create a preview of the notebook in html by running the following commands:
```bash
Expand Down
Loading

0 comments on commit 5366a31

Please sign in to comment.