Skip to content

Commit 0746ebb

Browse files
committed
Simplify README
Signed-off-by: martinRenou <martin.renou@gmail.com>
1 parent f5877f0 commit 0746ebb

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,39 +29,38 @@ magic:
2929

3030
## Installation
3131

32-
To install `ipympl` with conda:
32+
### With conda:
3333

3434
```bash
3535
conda install -c conda-forge ipympl
3636

37-
# If using the Notebook
38-
conda install -c conda-forge widgetsnbextension
39-
4037
# If using JupyterLab
41-
conda install nodejs
42-
jupyter labextension install @jupyter-widgets/jupyterlab-manager
43-
jupyter labextension install jupyter-matplotlib
38+
conda install -c conda-forge nodejs
39+
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib
4440
```
4541

46-
To install `ipympl` with pip:
42+
### With pip:
4743

4844
```bash
4945
pip install ipympl
5046

5147
# If using JupyterLab
5248
# Install nodejs: https://nodejs.org/en/download/
53-
jupyter labextension install @jupyter-widgets/jupyterlab-manager
54-
jupyter labextension install jupyter-matplotlib
49+
jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-matplotlib
5550
```
5651

57-
For a development installation (requires node),
52+
For a development installation (requires nodejs),
5853

5954
```bash
6055
git clone https://github.com/matplotlib/jupyter-matplotlib.git
6156
cd jupyter-matplotlib
6257
pip install -e .
58+
59+
# If using classic Jupyter Notebook
6360
jupyter nbextension install --py --symlink --sys-prefix ipympl
6461
jupyter nbextension enable --py --sys-prefix ipympl
62+
63+
# If using JupyterLab
6564
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
6665
jupyter labextension link ./js
6766
cd js && npm run watch

0 commit comments

Comments
 (0)