@@ -9,43 +9,22 @@ Installation
99To install use pip:
1010
1111 $ pip install neurolang_ipywidgets
12- $ jupyter nbextension enable --py --sys-prefix neurolang_ipywidgets
13-
14- To install for jupyterlab:
1512
16- $ jupyter labextension install neurolang_ipywidgets
17-
18- > To be able to run extensions in jupyterlab:
19- >
20- > $ jupyter labextension install @jupyter-widgets/jupyterlab-manager
21- >
22- > This should be installed before installing neurolang_ipywidgets
23-
24- For a development installation (requires npm),
13+ For a development installation (requires [ Node.js] ( https://nodejs.org ) and [ Yarn version 1] ( https://classic.yarnpkg.com/ ) ),
2514
2615 $ git clone https://github.com/NeuroLang/neurolang_ipywidgets.git
2716 $ cd neurolang_ipywidgets
2817 $ pip install -e .
29- $ jupyter nbextension install --py --symlink --sys-prefix neurolang_ipywidgets
18+ $ jupyter nbextension install --py --symlink --overwrite -- sys-prefix neurolang_ipywidgets
3019 $ jupyter nbextension enable --py --sys-prefix neurolang_ipywidgets
31- $ jupyter labextension install js
32-
33- When actively developing your extension, build Jupyter Lab with the command:
3420
35- $ jupyter lab --watch
36-
37- This take a minute or so to get started, but then allows you to hot-reload your javascript extension.
38- To see a change, save your javascript, watch the terminal for an update.
21+ When actively developing your extension for JupyterLab, run the command:
3922
40- Note on first ` jupyter lab --watch ` , you may need to touch a file to get Jupyter Lab to open.
23+ $ jupyter labextension develop --overwrite neurolang_ipywidgets
4124
42- Using notebook:
43- $ jupyter notebook
44-
45- - After making Python code changes, restarting the notebook kernel will be enough to reflect changes
46- - After making JavaScript code changes:
25+ Then you need to rebuild the JS when you make a code change:
4726
48- * cd js
49- * npm run build
50- * Refresh browser to reflect changes
27+ $ cd js
28+ $ yarn run build
5129
30+ You then need to refresh the JupyterLab page when your javascript changes.
0 commit comments