Skip to content

Commit 98cb86e

Browse files
authored
Add raytracer notebook to deployment (#786)
1 parent f0938a8 commit 98cb86e

4 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,11 @@ jobs:
224224
shell: bash -l {0}
225225
run: |
226226
cd ./xeus-cpp/
227-
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
227+
micromamba create -n xeus-lite-host jupyterlite-core jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
228228
micromamba activate xeus-lite-host
229229
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} \
230230
--contents notebooks/xeus-cpp-lite-demo.ipynb \
231+
--contents notebooks/tinyraytracer.ipynb \
231232
--contents notebooks/images/marie.png \
232233
--contents notebooks/audio/audio.wav \
233234
--XeusAddon.mounts="${{ env.PREFIX }}/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \

.github/workflows/emscripten.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,15 +1098,15 @@ jobs:
10981098
shell: bash -l {0}
10991099
run: |
11001100
cd ./xeus-cpp/
1101-
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
1101+
micromamba create -n xeus-lite-host jupyterlite-core jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
11021102
micromamba activate xeus-lite-host
1103-
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist
1103+
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/tinyraytracer.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist
11041104
11051105
- name: Jupyter Lite integration
11061106
if: ${{ runner.os == 'windows' }}
11071107
shell: powershell
11081108
run: |
11091109
cd .\xeus-cpp\
1110-
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
1110+
micromamba create -n xeus-lite-host jupyterlite-core jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
11111111
micromamba activate xeus-lite-host
1112-
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist
1112+
jupyter lite build --XeusAddon.prefix=${{ env.PREFIX }} --contents notebooks/xeus-cpp-lite-demo.ipynb --contents notebooks/tinyraytracer.ipynb --contents notebooks/images/marie.png --contents notebooks/audio/audio.wav --output-dir dist

Emscripten-build-instructions.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,10 +387,11 @@ To build and test Jupyter Lite with this kernel locally on Linux/MacOS you can e
387387

388388
```bash
389389
cd ../..
390-
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
390+
micromamba create -n xeus-lite-host jupyterlite-core jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
391391
micromamba activate xeus-lite-host
392392
jupyter lite serve --XeusAddon.prefix=$PREFIX \
393393
--contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \
394+
--contents xeus-cpp/notebooks/tinyraytracer.ipynb \
394395
--contents xeus-cpp/notebooks/images/marie.png \
395396
--contents xeus-cpp/notebooks/audio/audio.wav \
396397
--XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
@@ -401,10 +402,11 @@ and on Windows execute
401402

402403
```powershell
403404
cd ..\..
404-
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
405+
micromamba create -n xeus-lite-host jupyterlite-core jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
405406
micromamba activate xeus-lite-host
406407
jupyter lite serve --XeusAddon.prefix="$env:PREFIX" `
407408
--contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb `
409+
--contents xeus-cpp/notebooks/tinyraytracer.ipynb `
408410
--contents xeus-cpp/notebooks/images/marie.png `
409411
--contents xeus-cpp/notebooks/audio/audio.wav `
410412
--XeusAddon.mounts="$env:PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" `

docs/Emscripten-build-instructions.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,10 +409,11 @@ To build and test Jupyter Lite with this kernel locally on Linux/MacOS you can e
409409
.. code:: bash
410410
411411
cd ../..
412-
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
412+
micromamba create -n xeus-lite-host jupyterlite-core jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
413413
micromamba activate xeus-lite-host
414414
jupyter lite serve --XeusAddon.prefix=$PREFIX \
415415
--contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \
416+
--contents xeus-cpp/notebooks/tinyraytracer.ipynb \
416417
--contents xeus-cpp/notebooks/images/marie.png \
417418
--contents xeus-cpp/notebooks/audio/audio.wav \
418419
--XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
@@ -423,10 +424,11 @@ and on Windows execute
423424
.. code:: powershell
424425
425426
cd ..\..
426-
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
427+
micromamba create -n xeus-lite-host jupyterlite-core jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
427428
micromamba activate xeus-lite-host
428429
jupyter lite serve --XeusAddon.prefix="$env:PREFIX" `
429430
--contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb `
431+
--contents xeus-cpp/notebooks/tinyraytracer.ipynb `
430432
--contents xeus-cpp/notebooks/images/marie.png `
431433
--contents xeus-cpp/notebooks/audio/audio.wav `
432434
--XeusAddon.mounts="$env:PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" `

0 commit comments

Comments
 (0)