@@ -20,8 +20,12 @@ Jupyter Server Proxy
20
20
:target: https://www.npmjs.com/package/@jupyterlab/server-proxy
21
21
22
22
Jupyter Server Proxy lets you run arbitrary external processes (such
23
- as RStudio, Shiny Server, syncthing, PostgreSQL, etc) alongside your
24
- notebook, and provide authenticated web access to them.
23
+ as RStudio, Shiny Server, Syncthing, PostgreSQL, Code Server, etc)
24
+ alongside your notebook server and provide authenticated web access to
25
+ them using a path like ``/rstudio `` next to others like ``/lab ``.
26
+ Alongside the python package that provides the main functionality, the
27
+ JupyterLab extension (``@jupyterlab/server-proxy ``) provides buttons
28
+ in the JupyterLab launcher window to get to RStudio for example.
25
29
26
30
**Note: ** This project used to be called **nbserverproxy **. As
27
31
nbserverproxy is an older version of jupyter-server-proxy, uninstall
@@ -43,33 +47,79 @@ The primary use cases are:
43
47
`The documentation <https://jupyter-server-proxy.readthedocs.io/ >`_
44
48
contains information on installation & usage.
45
49
46
- ====================
47
50
Install
48
- ====================
51
+ =======
52
+
53
+ Python package
54
+ --------------
49
55
50
56
pip
51
- ---
57
+ ^^^
52
58
53
59
.. code-block ::
54
60
55
61
pip install jupyter-server-proxy
56
62
57
63
conda
58
- -----
64
+ ^^^^^
59
65
60
66
.. code-block ::
61
67
62
68
conda install jupyter-server-proxy -c conda-forge
63
69
64
- src
65
- ---
70
+ JupyterLab extension
71
+ --------------------
72
+
73
+ Note that as the JupyterLab extension only is a graphical interface to
74
+ launch registered applications in the python package, the extension
75
+ requires the python package to be installed.
66
76
67
77
.. code-block ::
68
78
69
- pip install .
79
+ jupyter labextension install @jupyterlab/server-proxy
80
+
81
+ Contributing
82
+ ============
83
+
84
+ Python package
85
+ --------------
86
+
87
+ .. code-block ::
88
+
89
+ pip install -e .
90
+
91
+ # explicit install needed with editable mode (-e) jupyter
92
+ serverextension enable --sys-prefix jupyter_server_proxy
93
+
94
+
95
+ JupyterLab extension
96
+ --------------------
97
+
98
+ The ``jlpm `` command is JupyterLab's pinned version of ``yarn `` that
99
+ is installed with JupyterLab. You may use ``yarn `` or ``npm `` instead
100
+ of ``jlpm `` below.
101
+
102
+ .. code-block ::
70
103
71
- **Note: ** if installing from source in editable mode: ``setup.py develop/pip install -e ``, please explicitly install the server extensions:
104
+ cd jupyterlab-server-proxy
105
+ # Install dependencies
106
+ jlpm
107
+ # Build Typescript source
108
+ jlpm build
109
+ # Link your development version of the extension with JupyterLab
110
+ jupyter labextension link .
111
+ # Rebuild Typescript source after making changes
112
+ jlpm build
113
+ # Rebuild JupyterLab after making any changes
114
+ jupyter lab build
115
+
116
+ You can watch the source directory and run JupyterLab in watch mode to
117
+ watch for changes in the extension's source and automatically rebuild
118
+ the extension and application.
72
119
73
120
.. code-block ::
74
121
75
- jupyter serverextension enable --sys-prefix jupyter_server_proxy
122
+ # Watch the source directory in another terminal tab
123
+ jlpm watch
124
+ # Run jupyterlab in watch mode in one terminal tab
125
+ jupyter lab --watch
0 commit comments