File tree Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Expand file tree Collapse file tree 1 file changed +25
-9
lines changed Original file line number Diff line number Diff line change @@ -78,27 +78,43 @@ Versions lookup table:
78
78
79
79
### For a development installation (requires nodejs):
80
80
81
+ Create a dev environment that has nodejs installed. The instructions here use
82
+ [ mamba] ( https://github.com/mamba-org/mamba#the-fast-cross-platform-package-manager ) but you
83
+ can also use conda.
84
+
85
+ ``` bash
86
+ mamba env create --file dev-environment.yml
87
+ conda activate ipympl-dev
88
+ ```
89
+
90
+ Install the Python Packge
81
91
``` bash
82
- git clone https://github.com/matplotlib/ipympl.git
83
- cd ipympl
84
92
pip install -e .
93
+ ```
94
+
95
+ When developing your extensions, you need to manually enable your extensions with the
96
+ notebook / lab frontend. For lab, this is done by the command:
85
97
86
- # If using classic Jupyter Notebook
98
+ ``` bash
99
+ jupyter labextension develop --overwrite .
100
+ npm run build
101
+ ```
102
+
103
+ For classic notebook, you need to run:
104
+ ``` bash
87
105
jupyter nbextension install --py --symlink --sys-prefix ipympl
88
106
jupyter nbextension enable --py --sys-prefix ipympl
89
-
90
- # If using JupyterLab
91
- jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
92
- jupyter labextension install ./js
93
107
```
94
108
95
109
#### How to see your changes
110
+
96
111
** Javascript** :
97
112
98
- To continuously monitor the project for changes and automatically trigger a rebuild, start Jupyter in watch mode :
113
+ You need to rebuild the JS when you make a code change :
99
114
100
115
``` bash
101
- jupyter lab --watch
116
+ cd js
117
+ yarn run watch
102
118
```
103
119
104
120
After a change wait for the build to finish and then refresh your browser and the changes should take effect.
You can’t perform that action at this time.
0 commit comments