Skip to content

Commit 168b6ce

Browse files
authored
Fix Jupyter Lite serve instruction (#363)
1 parent 7a3a24b commit 168b6ce

File tree

3 files changed

+7
-23
lines changed

3 files changed

+7
-23
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,16 @@ echo "Running test_xeus_cpp in Google Chrome"
145145
python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
146146
```
147147

148-
To build Jupyter Lite with this kernel without creating a website you can execute the following
148+
To build and test Jupyter Lite with this kernel locally you can execute the following
149149
```bash
150150
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyter_server jupyterlite-xeus -c conda-forge
151151
micromamba activate xeus-lite-host
152-
jupyter lite build --XeusAddon.prefix=$PREFIX \
152+
jupyter lite serve --XeusAddon.prefix=$PREFIX \
153153
--XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
154154
--XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" \
155155
--contents README.md \
156156
--contents notebooks/xeus-cpp-lite-demo.ipynb \
157157
--contents notebooks/smallpt.ipynb \
158158
--contents notebooks/images/marie.png \
159159
--contents notebooks/audio/audio.wav
160-
```
161-
162-
Once the Jupyter Lite site has built you can test the website locally by executing
163-
```bash
164-
jupyter lite serve --XeusAddon.prefix=$PREFIX
165-
```
160+
```

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,11 @@ echo "Running test_xeus_cpp in Google Chrome"
157157
python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
158158
```
159159

160-
To build Jupyter Lite with this kernel without creating a website you can execute the following
160+
To build and test Jupyter Lite with this kernel locally you can execute the following
161161
```bash
162162
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyter_server jupyterlite-xeus -c conda-forge
163163
micromamba activate xeus-lite-host
164-
jupyter lite build --XeusAddon.prefix=$PREFIX \
164+
jupyter lite serve --XeusAddon.prefix=$PREFIX \
165165
--XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
166166
--XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" \
167167
--contents README.md \
@@ -171,11 +171,6 @@ jupyter lite build --XeusAddon.prefix=$PREFIX \
171171
--contents notebooks/audio/audio.wav
172172
```
173173

174-
Once the Jupyter Lite site has built you can test the website locally by executing
175-
```bash
176-
jupyter lite serve --XeusAddon.prefix=$PREFIX
177-
```
178-
179174
## Trying it online
180175

181176
To try out xeus-cpp interactively in your web browser, just click on the binder link:

docs/source/InstallationAndUsage.rst

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ To do this on Ubuntu x86 execute the following
126126
echo "Running test_xeus_cpp in Google Chrome"
127127
python $BUILD_PREFIX/bin/emrun.py --browser="google-chrome" --kill_exit --timeout 60 --browser-args="--headless --no-sandbox" test_xeus_cpp.html
128128
129-
To build Jupyter Lite with this kernel without creating a website you can execute the following
129+
To build and test Jupyter Lite with this kernel locally you can execute the following
130130

131131
.. code-block:: bash
132132
133133
micromamba create -n xeus-lite-host jupyterlite-core=0.6 jupyter_server jupyterlite-xeus -c conda-forge
134134
micromamba activate xeus-lite-host
135-
jupyter lite build --XeusAddon.prefix=$PREFIX
135+
jupyter lite serve --XeusAddon.prefix=$PREFIX
136136
--XeusAddon.mounts="$PREFIX/share/xeus-cpp/tagfiles:/share/xeus-cpp/tagfiles" \
137137
--XeusAddon.mounts="$PREFIX/etc/xeus-cpp/tags.d:/etc/xeus-cpp/tags.d" \
138138
--contents README.md \
@@ -141,12 +141,6 @@ To build Jupyter Lite with this kernel without creating a website you can execut
141141
--contents notebooks/images/marie.png \
142142
--contents notebooks/audio/audio.wav
143143
144-
Once the Jupyter Lite site has built you can test the website locally by executing
145-
146-
.. code-block:: bash
147-
148-
jupyter lite serve --XeusAddon.prefix=$PREFIX
149-
150144
Installing from conda-forge
151145
===========================
152146

0 commit comments

Comments
 (0)