Skip to content

Commit

Permalink
setup for pyodide
Browse files Browse the repository at this point in the history
  • Loading branch information
rajarshitiwari committed Jun 7, 2024
1 parent c943c4f commit 456009a
Show file tree
Hide file tree
Showing 3 changed files with 100 additions and 7 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build and Deploy

on:
push:
branches:
- main
pull_request:
branches:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install the dependencies
run: |
python -m pip install -r requirements.txt
- name: Build the JupyterLite site
run: |
cp README.md content
jupyter lite build --contents content --output-dir dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./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@v4
Empty file added .nojekyll
Empty file.
59 changes: 52 additions & 7 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,52 @@
jupyter-book
jupytercards
jupyterquiz
matplotlib
numpy
sphinxcontrib.mermaid
sphinxcontrib.tikz
# Core modules (mandatory)
jupyterlite-core==0.3.0
jupyterlab~=4.1.6
notebook~=7.1.2


# Python kernel (optional)
jupyterlite-pyodide-kernel==0.3.1

# JavaScript kernel (optional)
# jupyterlite-javascript-kernel==0.3.0

# Language support (optional)
# jupyterlab-language-pack-fr-FR
# jupyterlab-language-pack-zh-CN

# P5 kernel (optional)
# jupyterlite-p5-kernel==0.1.0

# JupyterLab: Fasta file renderer (optional)
jupyterlab-fasta>=3.3.0,<4
# JupyterLab: Geojson file renderer (optional)
jupyterlab-geojson>=3.4.0,<4
# JupyterLab: guided tour (optional)
# TODO: re-enable after https://github.com/jupyterlab-contrib/jupyterlab-tour/issues/82
# jupyterlab-tour
# JupyterLab: dark theme
jupyterlab-night
# JupyterLab: Miami nights theme (optional)
jupyterlab_miami_nights

# Python: ipywidget library for Jupyter notebooks (optional)
ipywidgets>=8.1.1,<9
# Python: ipyevents library for Jupyter notebooks (optional)
ipyevents>=2.0.1
# Python: interative Matplotlib library for Jupyter notebooks (optional)
ipympl>=0.8.2
# Python: ipycanvas library for Jupyter notebooks (optional)
ipycanvas>=0.9.1
# Python: ipyleaflet library for Jupyter notebooks (optional)
ipyleaflet

# Python: plotting libraries (optional)
# plotly>=5,<6
# bqplot

# qiskit>=1.0
# qiskit-ibm-runtime #==0.23
# pennylane>=0.36
# cirq>=1.3
# nbformat>=5.10
# jsonschema>=4.21

0 comments on commit 456009a

Please sign in to comment.