You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -39,26 +39,26 @@ The `jlpm` command is JupyterLab's pinned version of
39
39
# Change directory to the nbname directory
40
40
41
41
# Set up a virtual environment and install package in development mode
42
-
python -m venv .venv
42
+
uv venv --seed
43
43
source .venv/bin/activate
44
-
pip install --editable "."
44
+
uv sync
45
45
46
46
# Link your development version of the extension with JupyterLab
47
47
jupyter labextension develop . --overwrite
48
48
49
49
# Rebuild extension Typescript source after making changes
50
50
# IMPORTANT: Unlike the steps above which are performed only once, do this step
51
51
# every time you make a change.
52
-
jlpm build
52
+
uv run jlpm run build
53
53
```
54
54
55
55
You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.
56
56
57
57
```bash
58
58
# Watch the source directory in one terminal, automatically rebuilding when needed
59
-
jlpm watch
59
+
uv run jlpm watch
60
60
# Run JupyterLab in another terminal
61
-
jupyter lab
61
+
uv run jupyter lab
62
62
```
63
63
64
64
With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).
0 commit comments