Skip to content

Commit

Permalink
Add jupyterlite
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-herrmann committed Mar 2, 2024
1 parent ad4d1e6 commit cfe560e
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/publish_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

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
working-directory: jupyterlite
run: |
python -m pip install -r requirements.txt
- name: Build the JupyterLite site
working-directory: jupyterlite
run: |
cp README.md notebooks
jupyter lite build --contents notebooks --output-dir jupyterlite/dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./jupyterlite/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 }}/jupyterlite

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion .github/workflows/update_site.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update site
name: Update main site

on:
push:
Expand Down
10 changes: 10 additions & 0 deletions jupyterlite/repl/jupyter-lite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"jupyter-lite-schema-version": 0,
"jupyter-config-data": {
"disabledExtensions": [
"@jupyterlab/drawio-extension",
"jupyterlab-kernel-spy",
"jupyterlab-tour"
]
}
}
52 changes: 52 additions & 0 deletions jupyterlite/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Core modules (mandatory)
jupyterlite-core==0.2.3
jupyterlab~=4.0.11
notebook~=7.0.7


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

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

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

# SQLite kernel (optional)
jupyterlite-xeus-sqlite==0.2.1
# P5 kernel (optional)
jupyterlite-p5-kernel==0.1.0
# Lua kernel (optional)
jupyterlite-xeus-lua==0.3.1

# 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

# Frictionless data (data packages, table schemas, etc.)
frictionless>=5,<6

0 comments on commit cfe560e

Please sign in to comment.