File tree Expand file tree Collapse file tree 4 files changed +33
-9
lines changed Expand file tree Collapse file tree 4 files changed +33
-9
lines changed Original file line number Diff line number Diff line change @@ -238,10 +238,15 @@ jobs:
238
238
shell : bash -l {0}
239
239
run : |
240
240
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
242
242
micromamba activate xeus-lite-host
243
- python -m pip install jupyterlite-xeus jupyterlite-core jupyterlab notebook libarchive-c
244
- 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
243
+ jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} \
244
+ --contents notebooks/xeus-cpp-lite-demo.ipynb \
245
+ --contents notebooks/smallpt.ipynb \
246
+ --contents notebooks/images/marie.png \
247
+ --contents notebooks/audio/audio.wav \
248
+ --XeusAddon.mounts="${{ env.PREFIX }}/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
249
+ --XeusAddon.mounts="${{ env.PREFIX }}/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" --output-dir dist
245
250
246
251
- name : Upload artifact
247
252
uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change @@ -830,3 +830,12 @@ jobs:
830
830
micromamba activate CppInterOp-wasm
831
831
cd ./xeus-cpp/build/test
832
832
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
Original file line number Diff line number Diff line change @@ -316,10 +316,15 @@ To build Jupyter Lite website with this kernel locally that you can use for test
316
316
317
317
``` bash
318
318
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
320
320
micromamba activate xeus-lite-host
321
- python -m pip install jupyterlite-xeus jupyter_server
322
- 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
321
+ jupyter lite build --XeusAddon.prefix=$PREFIX \
322
+ --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \
323
+ --contents xeus-cpp/notebooks/smallpt.ipynb \
324
+ --contents xeus-cpp/notebooks/images/marie.png \
325
+ --contents xeus-cpp/notebooks/audio/audio.wav \
326
+ --XeusAddon.mounts=" $PREFIX /share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
327
+ --XeusAddon.mounts=" $PREFIX /etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d"
323
328
```
324
329
325
330
Once the Jupyter Lite site has built you can test the website locally by executing
Original file line number Diff line number Diff line change @@ -341,10 +341,15 @@ for testing execute the following
341
341
.. code :: bash
342
342
343
343
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
345
345
micromamba activate xeus-lite-host
346
- python -m pip install jupyterlite-xeus jupyter_server
347
- 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
346
+ jupyter lite build --XeusAddon.prefix=$PREFIX \
347
+ --contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \
348
+ --contents xeus-cpp/notebooks/smallpt.ipynb \
349
+ --contents xeus-cpp/notebooks/images/marie.png \
350
+ --contents xeus-cpp/notebooks/audio/audio.wav \
351
+ --XeusAddon.mounts=" $PREFIX /share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
352
+ --XeusAddon.mounts=" $PREFIX /etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d"
348
353
349
354
Once the Jupyter Lite site has built you can test the website locally by
350
355
executing
You can’t perform that action at this time.
0 commit comments