Skip to content

Commit 396451a

Browse files
authored
Merge pull request #956 from martinRenou/update_install_instructions
Update installation instructions
2 parents 290a29c + 09289b0 commit 396451a

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ pip install -e .
7676
If you are using the classic Jupyter Notebook you need to install the nbextension:
7777

7878
```
79-
jupyter nbextension install --py --symlink --sys-prefix ipyleaflet
80-
jupyter nbextension enable --py --sys-prefix ipyleaflet
79+
jupyter nbextension install --py --symlink --sys-prefix --overwrite ipyleaflet
80+
jupyter nbextension enable --py --sys-prefix --overwrite ipyleaflet
8181
```
8282

8383
Note for developers:

docs/source/installation/index.rst

+9-12
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,20 @@ If you have JupyterLab <=2, you will also need to install the JupyterLab extensi
2828
Development installation
2929
------------------------
3030

31-
For a development installation (requires npm):
31+
For a development installation (requires yarn):
3232

3333
.. code:: bash
3434
3535
git clone https://github.com/jupyter-widgets/ipyleaflet.git
3636
cd ipyleaflet
3737
pip install -e .
38-
jupyter nbextension install --py --symlink --sys-prefix ipyleaflet
39-
jupyter nbextension enable --py --sys-prefix ipyleaflet
40-
jupyter labextension install @jupyter-widgets/jupyterlab-manager js # If you are developing on JupyterLab
38+
39+
# If you are developing on Jupyter Notebook
40+
jupyter nbextension install --py --symlink --sys-prefix --overwrite ipyleaflet
41+
jupyter nbextension enable --py --sys-prefix --overwrite ipyleaflet
42+
43+
# If you are developing on JupyterLab
44+
jupyter labextension develop . --overwrite
4145
4246
Note for developers:
4347

@@ -48,12 +52,5 @@ Note for developers:
4852

4953
.. code:: bash
5054
51-
npm run watch
52-
53-
If you are on JupyterLab you also need to run the following in a separate terminal:
54-
55-
.. code:: bash
56-
57-
jupyter lab --watch
55+
yarn run watch
5856
59-
Every time a JavaScript build has terminated you need to refresh the Notebook page in order to load the JavaScript code again.

0 commit comments

Comments
 (0)