Skip to content

Commit 529ce56

Browse files
committed
DOC: More suggestions on reloading during development
1 parent 4d1b602 commit 529ce56

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

README.rst

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,10 +295,26 @@ Participation is welcome! For a development installation (requires `Node.js <htt
295295
python -m pytest
296296

297297
The above commands will setup your system for development with the Jupyter
298-
Notebook. To develop for Jupyter Lab, additionally run::
298+
Notebook. In one terminal, start Jupyter::
299299

300-
jupyter labextension install @jupyter-widgets/jupyterlab-manager
300+
cd itkwidgets
301+
jupyter notebook
302+
303+
In another terminal, put Webpack in watch mode to rebuild any Javascript
304+
changes when you save a Javascript file::
305+
306+
cd itkwidgets
307+
npm run watch
308+
309+
If Python code is changed, restart the kernel to see the changes. If
310+
Javascript code is changed, reload the page after to Webpack has finished
311+
building.
312+
313+
To develop for Jupyter Lab, additionally run::
314+
315+
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib jupyterlab-datawidgets jupyter-webrtc
301316
jupyter labextension install ./js
317+
jupyter lab --watch
302318

303319
.. note::
304320

0 commit comments

Comments
 (0)