Skip to content

Commit e4683ef

Browse files
authored
Fix Jupyter Lite serve instruction (#654)
1 parent 10e0d5d commit e4683ef

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

Emscripten-build-instructions.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -334,23 +334,17 @@ emcmake cmake \
334334
emmake make -j $(nproc --all) install
335335
```
336336

337-
To build Jupyter Lite website with this kernel locally that you can use for testing execute the following
337+
To build and test Jupyter Lite with this kernel locally you can execute the following
338338

339339
```bash
340340
cd ../..
341341
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
342342
micromamba activate xeus-lite-host
343-
jupyter lite build --XeusAddon.prefix=$PREFIX \
343+
jupyter lite serve --XeusAddon.prefix=$PREFIX \
344344
--contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \
345345
--contents xeus-cpp/notebooks/smallpt.ipynb \
346346
--contents xeus-cpp/notebooks/images/marie.png \
347347
--contents xeus-cpp/notebooks/audio/audio.wav \
348348
--XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
349349
--XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d"
350350
```
351-
352-
Once the Jupyter Lite site has built you can test the website locally by executing
353-
354-
```bash
355-
jupyter lite serve --XeusAddon.prefix=$PREFIX
356-
```

docs/Emscripten-build-instructions.rst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -355,25 +355,17 @@ build folder, you can build the wasm version of xeus-cpp by executing
355355
..
356356
emmake make -j $(nproc --all) install
357357
358-
To build Jupyter Lite website with this kernel locally that you can use
359-
for testing execute the following
358+
To build and test Jupyter Lite with this kernel locally you can execute the following
360359

361360
.. code:: bash
362361
363362
cd ../..
364363
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyterlite-xeus jupyter_server jupyterlab notebook python-libarchive-c -c conda-forge
365364
micromamba activate xeus-lite-host
366-
jupyter lite build --XeusAddon.prefix=$PREFIX \
365+
jupyter lite serve --XeusAddon.prefix=$PREFIX \
367366
--contents xeus-cpp/notebooks/xeus-cpp-lite-demo.ipynb \
368367
--contents xeus-cpp/notebooks/smallpt.ipynb \
369368
--contents xeus-cpp/notebooks/images/marie.png \
370369
--contents xeus-cpp/notebooks/audio/audio.wav \
371370
--XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
372371
--XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d"
373-
374-
Once the Jupyter Lite site has built you can test the website locally by
375-
executing
376-
377-
.. code:: bash
378-
379-
jupyter lite serve --XeusAddon.prefix=$PREFIX

0 commit comments

Comments
 (0)