@@ -20,8 +20,12 @@ Jupyter Server Proxy
2020 :target: https://www.npmjs.com/package/@jupyterlab/server-proxy
2121
2222Jupyter 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.
2529
2630**Note: ** This project used to be called **nbserverproxy **. As
2731nbserverproxy is an older version of jupyter-server-proxy, uninstall
@@ -43,33 +47,79 @@ The primary use cases are:
4347`The documentation <https://jupyter-server-proxy.readthedocs.io/ >`_
4448contains information on installation & usage.
4549
46- ====================
4750Install
48- ====================
51+ =======
52+
53+ Python package
54+ --------------
4955
5056pip
51- ---
57+ ^^^
5258
5359.. code-block ::
5460
5561 pip install jupyter-server-proxy
5662
5763 conda
58- -----
64+ ^^^^^
5965
6066.. code-block ::
6167
6268 conda install jupyter-server-proxy -c conda-forge
6369
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.
6676
6777.. code-block ::
6878
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 ::
70103
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.
72119
73120.. code-block ::
74121
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