Jupyter server extension to supervise and proxy web services
Project description
Jupyter Server Proxy
Jupyter Server Proxy lets you run arbitrary external processes (such as
RStudio, Shiny Server, Syncthing, PostgreSQL, Code Server, etc)
alongside your notebook server and provide authenticated web access to
them using a path like /rstudio
next to others like /lab
. Alongside
the python package that provides the main functionality, the JupyterLab
extension (@jupyterlab/server-proxy
) provides buttons in the
JupyterLab launcher window to get to RStudio for example.
Note: This project used to be called nbserverproxy. As nbserverproxy is an older version of jupyter-server-proxy, uninstall nbserverproxy before installing jupyter-server-proxy to avoid conflicts.
The primary use cases are:
- Use with JupyterHub / Binder to allow launching users into web interfaces that have nothing to do with Jupyter - such as RStudio, Shiny, or OpenRefine.
- Allow access from frontend javascript (in classic notebook or JupyterLab extensions) to access web APIs of other processes running locally in a safe manner. This is used by the JupyterLab extension for dask.
The documentation contains information on installation & usage.
Install
Python package
pip
pip install jupyter-server-proxy
conda
conda install jupyter-server-proxy -c conda-forge
JupyterLab extension
Note that as the JupyterLab extension only is a graphical interface to launch registered applications in the python package, the extension requires the python package to be installed.
jupyter labextension install @jupyterlab/server-proxy
Contributing
Python package
pip install -e .
# explicit install needed with editable mode (-e) jupyter
jupyter serverextension enable --sys-prefix jupyter_server_proxy
JupyterLab extension
The jlpm
command is JupyterLab's pinned version of yarn
that is
installed with JupyterLab. You may use yarn
or npm
instead of jlpm
below.
cd jupyterlab-server-proxy
# Install dependencies
jlpm
# Build Typescript source
jlpm build
# Link your development version of the extension with JupyterLab
jupyter labextension link .
# Rebuild Typescript source after making changes
jlpm build
# Rebuild JupyterLab after making any changes
jupyter lab build
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.
# Watch the source directory in another terminal tab
jlpm watch
# Run jupyterlab in watch mode in one terminal tab
jupyter lab --watch
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file jupyter-server-proxy-1.5.2.tar.gz
.
File metadata
- Download URL: jupyter-server-proxy-1.5.2.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be9a828dd64c979f4c624eda5ee78d16137166314aca6c17187bb93d4e348022 |
|
MD5 | c6358a7ae558a594fc9a721bbec21a92 |
|
BLAKE2b-256 | f8e60b015918886bc45acafe6d4df4b621a374175eb500f9118111f30d09a11a |
File details
Details for the file jupyter_server_proxy-1.5.2-py3-none-any.whl
.
File metadata
- Download URL: jupyter_server_proxy-1.5.2-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d966c3be96d522134718cd6960638086a3e3caeed47bbf17dd92eea92824d6b |
|
MD5 | 2d23c262321ba518c601b5a471aa12cb |
|
BLAKE2b-256 | fa4b060279b509ef2e6c0f00bbef84023f0f4241cf2b491e068e3559cfcad07e |