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
# Link your development version of the extension with JupyterLab
120
-
jupyter labextension link .
110
+
jupyter labextension develop . --overwrite
111
+
# Rebuild extension Typescript source after making changes
112
+
jlpm run build
113
+
```
121
114
122
-
# Rebuild the TypeScript source after making changes
123
-
jlpm build
115
+
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.
124
116
125
-
# Rebuild JupyterLab after making any changes
126
-
jupyter lab build
117
+
```bash
118
+
# Watch the source directory in one terminal, automatically rebuilding when needed
119
+
jlpm run watch
120
+
# Run JupyterLab in another terminal
121
+
jupyter lab
127
122
```
128
123
129
-
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.
124
+
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).
130
125
131
-
```bash
132
-
# Watch the source directory in another terminal tab
133
-
jlpm watch
126
+
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:
134
127
135
-
# Run jupyterlab in watch mode in one terminal tab
0 commit comments