Skip to content
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

WIP: Add JupyterLite #14

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
- bob/jupyterlite
pull_request:
branches:
- '*'

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.10'
- 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 examples --output-dir dist
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist

deploy:
needs: build
if: github.ref == 'refs/heads/bob/jupyterlite'
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ target/
# Jupyter Notebook
.ipynb_checkpoints

# JupyterLite
.jupyterlite.doit.db

# IPython
profile_default/
ipython_config.py
Expand Down
Empty file added .nojekyll
Empty file.
26 changes: 26 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
awswrangler = "*"
boto3 = "*"
ipython = "*"
ipywidgets = "*"
jupyterlite-core = "*"
jupyterlite-pyodide-kernel = "*"
jupyterlab = "*"
jupyterlab-open-url-parameter = "*"
jupyterlab-server = "*"
matplotlib = "*"
numpy = "*"
pandas = "*"
plotly = "*"
python-dotenv = "*"

[dev-packages]

[requires]
python_version = "3.9"
python_full_version = "3.9.16"
1,649 changes: 1,649 additions & 0 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/Recommendations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"source": [
"#@title Install Python Packages\n",
"\n",
"!pip install git+https://github.com/RebootMotion/[email protected]#egg=reboot_toolkit > /dev/null\n",
"!echo \"Done Installing\""
"# !pip install git+https://github.com/RebootMotion/[email protected]#egg=reboot_toolkit > /dev/null\n",
"# !echo \"Done Installing\""
]
},
{
Expand Down
10 changes: 10 additions & 0 deletions 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"
]
}
}
25 changes: 15 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
awswrangler
boto3
IPython
ipywidgets
matplotlib
numpy
pandas
plotly
python-dotenv

awswrangler
boto3
ipython
ipywidgets
jupyterlite-core
jupyterlite-pyodide-kernel
jupyterlab
jupyterlab-open-url-parameter
jupyterlab-server
matplotlib
numpy
pandas
plotly
python-dotenv
git+https://github.com/RebootMotion/[email protected]#egg=reboot_toolkit