Skip to content

Commit d78b848

Browse files
committed
Update Emscripten instructions to match xeus-cpp (+ jupyterlab notebook libarchive-c to be consistent with ci)
1 parent 3d3c82d commit d78b848

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

.github/workflows/deploy-pages.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,8 @@ jobs:
238238
shell: bash -l {0}
239239
run: |
240240
cd ./xeus-cpp/
241-
micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge
241+
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
242242
micromamba activate xeus-lite-host
243-
python -m pip install jupyterlite-xeus jupyterlite-core jupyterlab notebook libarchive-c
244243
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/smallpt.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist
245244
246245
- name: Upload artifact

.github/workflows/emscripten.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,3 +830,12 @@ jobs:
830830
micromamba activate CppInterOp-wasm
831831
cd ./xeus-cpp/build/test
832832
node test_xeus_cpp.js
833+
834+
- name: Jupyter Lite integration
835+
if: ${{ runner.os != 'windows' }}
836+
shell: bash -l {0}
837+
run: |
838+
cd ./xeus-cpp/
839+
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
840+
micromamba activate xeus-lite-host
841+
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/smallpt.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist

Emscripten-build-instructions.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,8 @@ To build Jupyter Lite website with this kernel locally that you can use for test
316316

317317
```bash
318318
cd ../..
319-
micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge
319+
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
320320
micromamba activate xeus-lite-host
321-
python -m pip install jupyterlite-xeus jupyter_server
322321
jupyter lite build --XeusAddon.prefix=$PREFIX --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/smallpt.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav
323322
```
324323

docs/Emscripten-build-instructions.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,8 @@ for testing execute the following
341341
.. code:: bash
342342
343343
cd ../..
344-
micromamba create -n xeus-lite-host jupyterlite-core -c conda-forge
344+
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
345345
micromamba activate xeus-lite-host
346-
python -m pip install jupyterlite-xeus jupyter_server
347346
jupyter lite build --XeusAddon.prefix=$PREFIX --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/smallpt.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav
348347
349348
Once the Jupyter Lite site has built you can test the website locally by

0 commit comments

Comments
 (0)