Skip to content
Open
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
39 changes: 24 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,37 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
uses: actions/checkout@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
python-version: '3.11'
- name: Install the dependencies
run: |
# install the JupyterLite dependencies
python -m pip install jupyterlite-pyodide-kernel jupyterlite-core --pre
version: "0.9.5"
enable-cache: true

- name: Set up Python
run: uv python install
working-directory: ./demo

# install a couple of other useful packages for the demo
python -m pip install ipywidgets
- name: Install the project
run: uv sync --locked --all-extras --dev
working-directory: ./demo

- name: Copy files
run: |
mkdir contents
cp README.md contents
working-directory: ./demo

# install a dev version of the extension
python -m pip install .
- name: Build the JupyterLite site
run: |
jupyter lite build --output-dir dist
uv run jupyter lite build
working-directory: ./demo

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
path: ./dist
path: ./demo/dist

deploy:
needs: build
Expand Down
3 changes: 3 additions & 0 deletions demo/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# JupyterLite AI Demo

This is a demo for showcasing [JupyterLite AI](https://github.com/jupyterlite/ai).
6 changes: 6 additions & 0 deletions demo/jupyter_lite_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"LiteBuildConfig": {
"contents": ["contents"],
"output_dir": "dist"
}
}
5 changes: 5 additions & 0 deletions demo/overrides.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"@jupyterlab/notebook-extension:tracker": {
"windowingMode": "contentVisibility"
}
}
18 changes: 18 additions & 0 deletions demo/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[project]
name = "jupyterlite-ai-demo"
version = "0.1.0"
description = "JupyterLite AI Demo"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"ipywidgets>=8.1.7",
"jupyterlab>=4.5.0b1",
"jupyterlab-day>=0.2.0",
"jupyterlab-night>=0.5.2",
"jupyterlite-ai",
"jupyterlite-core>=0.7.0b0",
"jupyterlite-pyodide-kernel>=0.7.0b0",
]

[tool.uv.sources]
jupyterlite-ai = { path = "../" }
Loading
Loading