diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 99c1cda1..e3630159 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,9 +21,10 @@ jobs: - name: Install the dependencies run: | python -m pip install -r requirements.txt + python -m pip install -r requirements-jupyterlite.txt - name: Build the JupyterLite site run: | - jupyter lite build --contents notebooks + jupyter lite build - name: Upload (dist) uses: actions/upload-artifact@v2 with: diff --git a/README.md b/README.md index a189c9be..db5d003b 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ ## Tutorial, SciPy 2022 +[![lite-badge](https://jupyterlite.rtfd.io/en/latest/_static/badge.svg)](https://jupyter-widgets.github.io/tutorial) + # https://github.com/jupyter-widgets/tutorial # Installation diff --git a/jupyter_lite_config.json b/jupyter_lite_config.json new file mode 100644 index 00000000..24682d71 --- /dev/null +++ b/jupyter_lite_config.json @@ -0,0 +1,29 @@ +{ + "LiteBuildConfig": { + "contents": ["notebooks"], + "XeusPythonEnv": { + "packages": [ + "bqplot", + "branca", + "ipycanvas", + "ipycytoscape", + "ipydatagrid", + "ipyevents", + "ipygany", + "ipyleaflet", + "ipympl", + "ipytree", + "ipyvolume", + "ipyvuetify", + "ipywidgets", + "mpl-interactions", + "numpy", + "pandas", + "pythreejs", + "pyvista", + "requests", + "sidecar" + ] + } + } +} diff --git a/repl/jupyter-lite.json b/repl/jupyter-lite.json index cedcd390..adbaf544 100644 --- a/repl/jupyter-lite.json +++ b/repl/jupyter-lite.json @@ -1,10 +1,9 @@ { - "jupyter-lite-schema-version": 0, - "jupyter-config-data": { - "disabledExtensions": [ - "jupyterlab-kernel-spy", - "@jupyterlite/javascript-kernel-extension" - ] - } + "jupyter-lite-schema-version": 0, + "jupyter-config-data": { + "disabledExtensions": [ + "jupyterlab-kernel-spy", + "@jupyterlite/javascript-kernel-extension" + ] } - \ No newline at end of file +} diff --git a/requirements-jupyterlite.txt b/requirements-jupyterlite.txt new file mode 100644 index 00000000..ac837787 --- /dev/null +++ b/requirements-jupyterlite.txt @@ -0,0 +1,2 @@ +jupyterlite==0.1.0b11 +jupyterlite-xeus-python diff --git a/requirements.txt b/requirements.txt index e4e02d12..8d38ec2f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -12,6 +12,9 @@ ipyvolume==0.6.0a8 ipyvuetify==1.8.2 ipywidgets==7.7.1 jupyterlab==3.4 +jupyterlab-language-pack-fr-FR +jupyterlab-language-pack-zh-CN +jupyterlab_github mpl-interactions==0.22.0 numpy orjson==3.7.7 @@ -24,10 +27,3 @@ scipy sidecar==0.5.1 voila==0.3.5 vtk==9.1.0 - -jupyterlab-language-pack-fr-FR -jupyterlab-language-pack-zh-CN -jupyterlab_miami_nights -jupyterlite==0.1.0b11 -theme-darcula -jupyterlab_github