@@ -10,11 +10,16 @@ the README.md file.
1010### Python package
1111
1212``` bash
13+ # Clone the repo to your local environment
14+ git clone https://github.com/jupyterhub/jupyter-server-proxy.git
15+ # Change directory to the jupyter-server-proxy directory
16+ cd jupyter-server-proxy
17+ # Install package in development mode
1318pip install -e " .[test]"
14-
15- # explicit install needed with editable mode (-e) jupyter
16- jupyter serverextension enable --sys-prefix jupyter_server_proxy
17- jupyter server extension enable --sys-prefix jupyter_server_proxy
19+ # Link your development version of the extension with JupyterLab (only for JupyterLab 3)
20+ jupyter labextension develop --overwrite .
21+ # Server extension must be manually installed in develop mode
22+ jupyter server extension enable jupyter_server_proxy
1823```
1924
2025Before running tests, you need a server that we can test against.
@@ -79,7 +84,22 @@ and `jupyter_server_proxy/labextension` folders:
7984
8085``` bash
8186cd labextension
82- jlpm watch
87+ # Watch the source directory in one terminal, automatically rebuilding when needed
88+ jlpm run watch
89+ # Run JupyterLab in another terminal
90+ jupyter lab
91+ ```
92+
93+ With the watch command running, every saved change will immediately be built locally
94+ and available in your running JupyterLab. Refresh JupyterLab to load the change in
95+ your browser (you may need to wait several seconds for the extension to be rebuilt).
96+
97+ By default, the ` jlpm run build ` command generates the source maps for this
98+ extension to make it easier to debug using the browser dev tools. To also generate
99+ source maps for the JupyterLab core extensions, you can run the following command:
100+
101+ ``` bash
102+ jupyter lab build --minimize=False
83103```
84104
85105### Documentation
0 commit comments