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
# Rebuild extension Typescript source after making changes
57
+
jlpm run build
52
58
```
53
59
54
-
You can watch the source directory and run JupyterLab in watch mode to watch for changes in the extension's source and automatically rebuild the extension and application.
60
+
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.
55
61
56
62
```bash
57
-
# Watch the source directory in another terminal tab
58
-
jlpm watch
59
-
# Run jupyterlab in watch mode in one terminal tab
60
-
jupyter lab --watch
63
+
# Watch the source directory in one terminal, automatically rebuilding when needed
64
+
jlpm run watch
65
+
# Run JupyterLab in another terminal
66
+
jupyter lab
61
67
```
62
68
63
-
Now every change will be built locally and bundled into JupyterLab. Be sure to refresh your browser page after saving file changes to reload the extension (note: you'll need to wait for webpack to finish, which can take 10s+ at times).
69
+
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).
70
+
71
+
By default, the `jlpm run build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:
0 commit comments