Skip to content

Commit 3c3bfa3

Browse files
jcoadymwcraig
authored andcommitted
Update instructions for JupyterLab 1.x
1 parent 1df53aa commit 3c3bfa3

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

labextension/vpython/README.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,31 @@ jupyter labextension install vpython
1616

1717
## Development
1818

19-
For a development install (requires npm version 4 or later), do the following in the repository directory:
19+
For a development install use the instructions for creating a custom jupyter labextension as a guide:
20+
21+
https://jupyterlab.readthedocs.io/en/stable/developer/extension_tutorial.html#extension-tutorial
22+
23+
but taylor the instructions for creating a vpython labextension.
2024

2125
```bash
22-
npm install
23-
cp -r ../../vpython/vpython_{libraries,data} lib/
26+
jlpm install
27+
jlpm add @jupyterlab/application
28+
jlpm add @jupyterlab/apputils
29+
jlpm add @jupyterlab/coreutils
30+
jlpm add @jupyterlab/docregistry
31+
jlpm add @jupyterlab/notebook
32+
jlpm add @phosphor/disposable
33+
jlpm add script-loader
34+
35+
cp -r ../../vpython/vpython_{libraries,data} .
36+
jlpm run build
2437
jupyter labextension install .
2538
```
2639

2740
To rebuild the package and the JupyterLab app:
2841

2942
```bash
30-
npm run build
43+
jlpm run build
3144
jupyter lab build
3245
```
3346

0 commit comments

Comments
 (0)