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

Package example notebooks in JupyterLite #3491

Merged
merged 26 commits into from
Jul 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
44332e9
Initial jupyterlite implementation
jasongrout Jun 17, 2022
c6dc3c5
Attempt to ignore some cells with nbsphinx extra arguments.
jasongrout Jun 21, 2022
64144ae
Delete experimental nbsphinx config
jasongrout Jun 22, 2022
06a97ad
Update doc CI to use mamba
jasongrout Jun 22, 2022
81c345b
Disable other kernels, add more examples.
jasongrout Jun 22, 2022
1b9f141
Update notebooks to have jupyterlite piplite imports
jasongrout Jul 7, 2022
e07e811
Commit jupyterlite_config.json
jasongrout Jul 7, 2022
7909b99
Fix example errors and warnings
jasongrout Jul 7, 2022
fce1923
Delete xeus-python, upgrade ipyleaflet and jupyterlite in docs jupyte…
jasongrout Jul 7, 2022
99fe528
Fix leaflet examples
jasongrout Jul 7, 2022
0915a37
Update docs to ipywidgets 8
jasongrout Jul 7, 2022
d3b71f8
Fix Stacked when selected_index is None
jasongrout Jul 7, 2022
b20ad59
Update documentation build instructions to align with how readthedocs…
jasongrout Jul 7, 2022
a69b7aa
Update docs requirements
jasongrout Jul 7, 2022
387bc9e
Add notes on which files won't work in jupyterlite
jasongrout Jul 7, 2022
d6c1a72
Delete a few examples from jupyterlite that won't work in jupyterlite…
jasongrout Jul 7, 2022
678973b
Ignore notebooks for jupyterlite using the config file.
jasongrout Jul 7, 2022
d1c6121
Add animated gif
jasongrout Jul 8, 2022
5789525
use dynamic wheels/labextension
bollwyvl Jul 10, 2022
8fac8c2
merge upstream
bollwyvl Jul 10, 2022
6c02f8c
add lab, node for docs tests
bollwyvl Jul 10, 2022
ffe23b9
sync node versions
bollwyvl Jul 10, 2022
79dbdfc
more rtd config
bollwyvl Jul 10, 2022
69b4ab1
add build
bollwyvl Jul 10, 2022
0c10aa8
resore ipywidget dev install
bollwyvl Jul 10, 2022
5a40069
Add JupyterLab Github extension so people can open up repos from GitHub.
jasongrout Jul 11, 2022
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
71 changes: 34 additions & 37 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,21 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.7
- uses: actions/cache@v1
cache: 'pip'
cache-dependency-path: |
**/setup.cfg
**/requirements*.txt
- name: Install node
uses: actions/setup-node@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{hashFiles('**/requirements.txt')}}
restore-keys: |
${{ runner.os }}-pip-
node-version: '14'
cache: 'yarn'
cache-dependency-path: |
yarn.lock
ui-tests/yarn.lock
- name: Install dependencies
run: |
sudo apt-get install -y pandoc
Expand All @@ -26,24 +32,22 @@ jobs:
python -m pip install -r ./docs/requirements.txt
- name: Build docs
run: |
cd docs
make html
cd docs/source
python -m sphinx -T -E -b html -d ../build/doctrees -D language=en . ../build/html
js:
name: JavaScript
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.7
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{hashFiles('**/requirements.txt')}}
restore-keys: |
${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: |
**/setup.cfg
**/requirements*.txt
- name: Install dependencies
run: |
sudo apt-get install -y firefox
Expand Down Expand Up @@ -93,15 +97,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{hashFiles('**/requirements.txt')}}
restore-keys: |
${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: |
**/setup.cfg
**/requirements*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -117,15 +119,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.7
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{hashFiles('**/requirements.txt')}}
restore-keys: |
${{ runner.os }}-pip-
cache: 'pip'
cache-dependency-path: |
**/setup.cfg
**/requirements*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -141,16 +141,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{hashFiles('**/requirements.txt')}}
restore-keys: |
${{ runner.os }}-pip-

cache: 'pip'
cache-dependency-path: |
**/setup.cfg
**/requirements*.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ dist
_build
docs/man/*.gz
docs/source/api/generated
docs/source/.cache
*.doit.db
_contents
node_modules
*.py[co]
__pycache__
Expand Down
19 changes: 19 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2

build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-4.10"
python:
install:
- method: pip
path: ./python/ipywidgets
conda:
environment: docs/environment.yml

# python:
# version: 3.7
# install:
# - method: pip
# path: ./python/ipywidgets
# - requirements: docs/requirements.txt
36 changes: 0 additions & 36 deletions docs/Makefile

This file was deleted.

24 changes: 24 additions & 0 deletions docs/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Building ipywidgets documentation

To build the ipywidgets documentation:

1. Install the development version of ipywidgets with the `dev-install.sh` script in the repo root directory.
2. Install the Python packages for building documentation with either mamba or conda:
```sh
conda update --file docs/environment.yml
```

or with `pip`:

```sh
python -m pip install -r docs/requirements.txt
# Also install pandoc separately
```

3. Build the HTML docs with sphinx:
```sh
cd docs/source
python -m sphinx -T -E -b html -d ../build/doctrees -D language=en . ../build/html
```

4. Open the documentation from the build directory: `docs/build/html`
29 changes: 29 additions & 0 deletions docs/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: docs
channels:
- conda-forge
- nodefaults
dependencies:
- bqplot
- build
- empack
- ipykernel
- jupyter_client
- jupyterlab >=3,<4
- jupyter-packaging
- matplotlib
- nbsphinx
- nodejs=14
- numpy
- packaging
- pandoc
- pip
- python=3.10
- recommonmark
- scikit-image
- scikit-learn
- sphinx
- sphinx_rtd_theme
- sympy
- pip:
- jupyterlite==0.1.0b10
- jupyterlite-sphinx>=0.6.0
65 changes: 0 additions & 65 deletions docs/make.bat

This file was deleted.

6 changes: 6 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
bqplot
build
ipykernel
jupyter_client
jupyterlab>=3,<4
jupyterlite-sphinx
matplotlib
nbsphinx>=0.5
numpy
Expand All @@ -10,3 +13,6 @@ sphinx_rtd_theme
packaging
scikit-image
scikit-learn
sympy
jupyterlite==0.1.0b10
jupyterlite-sphinx>=0.6.0
Loading