File tree Expand file tree Collapse file tree 5 files changed +15
-40
lines changed Expand file tree Collapse file tree 5 files changed +15
-40
lines changed Original file line number Diff line number Diff line change 37
37
matrix :
38
38
python-version : ["3.8", "3.11"]
39
39
jupyter_server-version : ["1", "2"]
40
- jupyterlab-version : ["2", " 3"]
40
+ jupyterlab-version : ["3"]
41
41
42
42
steps :
43
43
- uses : actions/checkout@v3
99
99
jupyter server extension list
100
100
jupyter server extension list 2>&1 | grep -iE "jupyter_server_proxy.*OK" -
101
101
102
- - name : Install JupyterLab Extension
103
- if : matrix.jupyterlab-version == '2'
104
- run : |
105
- export NODE_OPTIONS=--openssl-legacy-provider
106
- cd labextension
107
- jupyter labextension install . --no-build --debug
108
- jupyter lab build --minimize=False --debug
109
-
110
102
- name : Check the lab extension
111
- # We test the labextension thoroughly in the acceptance tests below, so
112
- # we have conditionally disabled this basic check is to avoid issues in
113
- # jupyterlab.browser_check with jupyterlab 2 and jupyter_server 2+.
114
- #
115
- if : ${{ !(matrix.jupyterlab-version == '2' && matrix.jupyter_server-version != '1') }}
116
103
run : |
117
104
jupyter labextension list
118
105
jupyter labextension list 2>&1 | grep -iE '@jupyterhub/jupyter-server-proxy.*OK.*'
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ git clone https://github.com/jupyterhub/jupyter-server-proxy.git
16
16
cd jupyter-server-proxy
17
17
# Install package in development mode
18
18
pip install -e " .[test]"
19
- # Link your development version of the extension with JupyterLab (only for JupyterLab 3)
19
+ # Link your development version of the extension with JupyterLab
20
20
jupyter labextension develop --overwrite .
21
21
# Server extension must be manually installed in develop mode
22
22
jupyter server extension enable jupyter_server_proxy
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ Server via the container.
54
54
55
55
### Requirements
56
56
57
- - ` jupyterlab>=2 ` or ` notebook `
57
+ Either ` jupyterlab>=3 ` or ` notebook ` is required.
58
58
59
59
### Python package
60
60
@@ -70,22 +70,14 @@ pip install jupyter-server-proxy
70
70
conda install jupyter-server-proxy -c conda-forge
71
71
```
72
72
73
- #### Local development
74
-
75
- > See the [ contributing guide] ( https://github.com/jupyterhub/jupyter-server-proxy/blob/main/CONTRIBUTING.md ) .
76
-
77
73
### JupyterLab extension
78
74
79
- Note that as the JupyterLab extension only is a graphical interface to
80
- launch registered applications in the python package, the extension
81
- requires the python package to be installed.
75
+ A JupyterLab extension is bundled with the Python package to provide launch
76
+ buttons in JupyterLab's Launcher panel for registered server processes.
82
77
83
- As of version 3.0.0 the Python package ships with a JupyterLab 3 compatible
84
- extension, making this step only needed for JupyterLab 2.
78
+ ![ ] ( docs/source/_static/images/labextension-launcher.png )
85
79
86
- ``` bash
87
- jupyter labextension install @jupyterhub/jupyter-server-proxy
88
- ```
80
+ Clicking on them opens the proxied application in a new browser window.
89
81
90
82
## Disable
91
83
@@ -107,3 +99,7 @@ jupyter nbextension disable --sys-prefix --py jupyter_server_proxy
107
99
``` bash
108
100
jupyter labextension disable @jupyterhub/jupyter-server-proxy
109
101
```
102
+
103
+ #### Local development
104
+
105
+ To setup a local development environment, see the [ contributing guide] ( https://github.com/jupyterhub/jupyter-server-proxy/blob/main/CONTRIBUTING.md ) .
Original file line number Diff line number Diff line change @@ -17,20 +17,13 @@ is already running, it is reused.
17
17
18
18
```
19
19
20
- ## JupyterLab Launcher Extension
20
+ ## JupyterLab Extension
21
21
22
- The @jupyterhub/jupyter-server-proxy JupyterLab extension can be installed to
23
- provide launcher icons for registered server processes.
24
-
25
- ``` bash
26
- jupyter labextension install @jupyterhub/jupyter-server-proxy
27
- ```
28
-
29
- This should provide icons for each registered process in the main
30
- JupyterLab launcher
22
+ A JupyterLab extension is bundled with the Python package to provide launch
23
+ buttons in JupyterLab's Launcher panel for registered server processes.
31
24
32
25
``` {image} _static/images/labextension-launcher.png
33
26
34
27
```
35
28
36
- Clicking on them will open the application in a new window.
29
+ Clicking on them opens the proxied application in a new browser window.
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ requires-python = ">=3.8"
30
30
classifiers = [
31
31
" Framework :: Jupyter" ,
32
32
" Framework :: Jupyter :: JupyterLab" ,
33
- " Framework :: Jupyter :: JupyterLab :: 2" ,
34
33
" Framework :: Jupyter :: JupyterLab :: 3" ,
35
34
" Framework :: Jupyter :: JupyterLab :: Extensions :: Prebuilt" ,
36
35
" Framework :: Jupyter :: JupyterLab :: Extensions" ,
You can’t perform that action at this time.
0 commit comments