diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ee4d6ba5..b799e0a7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -145,11 +145,11 @@ echo "Running test_xeus_cpp in Google Chrome" python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html ``` -To build Jupyter Lite with this kernel without creating a website you can execute the following +To build and test Jupyter Lite with this kernel locally you can execute the following ```bash micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyter_server jupyterlite-xeus -c conda-forge micromamba activate xeus-lite-host -jupyter lite build --XeusAddon.prefix=$PREFIX \ +jupyter lite serve --XeusAddon.prefix=$PREFIX \ --XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \ --XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" \ --contents README.md \ @@ -157,9 +157,4 @@ jupyter lite build --XeusAddon.prefix=$PREFIX \ --contents notebooks/smallpt.ipynb \ --contents notebooks/images/marie.png \ --contents notebooks/audio/audio.wav -``` - -Once the Jupyter Lite site has built you can test the website locally by executing -```bash -jupyter lite serve --XeusAddon.prefix=$PREFIX -``` +``` \ No newline at end of file diff --git a/README.md b/README.md index 5c8afabc..0f6888d4 100644 --- a/README.md +++ b/README.md @@ -157,11 +157,11 @@ echo "Running test_xeus_cpp in Google Chrome" python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html ``` -To build Jupyter Lite with this kernel without creating a website you can execute the following +To build and test Jupyter Lite with this kernel locally you can execute the following ```bash micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyter_server jupyterlite-xeus -c conda-forge micromamba activate xeus-lite-host -jupyter lite build --XeusAddon.prefix=$PREFIX \ +jupyter lite serve --XeusAddon.prefix=$PREFIX \ --XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \ --XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" \ --contents README.md \ @@ -171,11 +171,6 @@ jupyter lite build --XeusAddon.prefix=$PREFIX \ --contents notebooks/audio/audio.wav ``` -Once the Jupyter Lite site has built you can test the website locally by executing -```bash -jupyter lite serve --XeusAddon.prefix=$PREFIX -``` - ## Trying it online To try out xeus-cpp interactively in your web browser, just click on the binder link: diff --git a/docs/source/InstallationAndUsage.rst b/docs/source/InstallationAndUsage.rst index 6b22d268..594fdbbe 100644 --- a/docs/source/InstallationAndUsage.rst +++ b/docs/source/InstallationAndUsage.rst @@ -126,13 +126,13 @@ To do this on Ubuntu x86 execute the following echo "Running test_xeus_cpp in Google Chrome" python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html -To build Jupyter Lite with this kernel without creating a website you can execute the following +To build and test Jupyter Lite with this kernel locally you can execute the following .. code-block:: bash micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyter_server jupyterlite-xeus -c conda-forge micromamba activate xeus-lite-host - jupyter lite build --XeusAddon.prefix=$PREFIX + jupyter lite serve --XeusAddon.prefix=$PREFIX --XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \ --XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" \ --contents README.md \ @@ -141,12 +141,6 @@ To build Jupyter Lite with this kernel without creating a website you can execut --contents notebooks/images/marie.png \ --contents notebooks/audio/audio.wav -Once the Jupyter Lite site has built you can test the website locally by executing - -.. code-block:: bash - - jupyter lite serve --XeusAddon.prefix=$PREFIX - Installing from conda-forge ===========================