Skip to content

Commit

Permalink
copy and modify from jpivarski-talks/2024-06-20-uscms-princeton-tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski committed Dec 6, 2024
1 parent 8faf08f commit a2c18e9
Show file tree
Hide file tree
Showing 22 changed files with 12,351 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/jupyterlite.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build and Deploy JupyterLite

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install the dependencies
working-directory: site
run: |
python -m pip install -r requirements.txt
- name: Build the JupyterLite site
working-directory: site
run: |
jupyter lite build --output-dir dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./site/dist

deploy:
needs: build
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write

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

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.ipynb_checkpoints
__pycache__
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Array oriented programming tutorial

Click on this link:

<p align="center">
<a href="https://hsf-training.github.io/array-oriented-programming/lab/index.html?path=tutorial.ipynb">
<img src="https://jupyterlite.readthedocs.io/en/latest/_static/badge.svg" alt="Launch JupyterLite" height="40">
</a>
</p>

to open the tutorial notebook in JupyterLite (in your web browser).
Binary file added site/files/data/SMHiggsToZZTo4L.root
Binary file not shown.
Binary file added site/files/data/sun-shines-in-CMS.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
650 changes: 650 additions & 0 deletions site/files/img/array3d-highlight1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
650 changes: 650 additions & 0 deletions site/files/img/array3d-highlight2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a2c18e9

Please sign in to comment.