File tree Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,42 @@ Except where the tutorial says: `conda install -c conda-forge jupyterlab=2`, use
24
24
and tailor the instructions for creating a vpython labextension. Also, the tutorial command
25
25
` jupyter lab --watch ` will fail. Just use ` jupyter lab ` .
26
26
27
+ The original instructions below caused trouble for me (steve, I got various React errors) but this is what worked:
28
+
29
+ 1 ) Create and activate a conda environment, and then install jupyterlab:
30
+
31
+ conda create -n jupyterlab-ext --override-channels --strict-channel-priority -c conda-forge -c anaconda jupyterlab cookiecutter nodejs git
32
+
33
+ conda activate jupyterlab-ext
34
+
35
+ conda install -c conda-forge jupyterlab=1
36
+
37
+ 2 ) git clone the repository (the branch from the pull request) somewhere using whatever git machinery you prefer.
38
+
39
+ Then “cd” into the ‘vpython-jupyter/labextension/vpython’ of that repository.
40
+
41
+ 3 ) In the ‘vpython-jupyter/labextension/vpython’ directory of that repository execute:
42
+
43
+ cp -r ../../vpython/vpython_ {libraries,data} .
44
+
45
+ yarn install
46
+
47
+ jupyter labextension install .
48
+
49
+ 4 ) Install vpyton in this virtual environment:
50
+
51
+ cd ../..
52
+
53
+ pip install -e .
54
+
55
+ And then to run a lab notebook:
56
+
57
+ jupyter lab
58
+
59
+ Then you should be able to import vpython now and run notebooks in jupyterlab.
60
+
61
+ Original instructions:
62
+
27
63
``` bash
28
64
jlpm install
29
65
jlpm add @jupyterlab/application
@@ -45,5 +81,3 @@ To rebuild the package and the JupyterLab app:
45
81
jlpm run build
46
82
jupyter lab build
47
83
```
48
-
49
-
You can’t perform that action at this time.
0 commit comments