Metadata-Version: 2.1
Name: jupyter-xprahtml5-proxy
Version: 0.3.3
Summary: Xpra for JupyterLab
Home-page: https://github.com/FZJ-JSC/jupyter-xprahtml5-proxy
Download-URL: https://github.com/FZJ-JSC/jupyter-xprahtml5-proxy/archive/v0.3.3.tar.gz
Author: Jens Henrik Goebbert
Author-email: j.goebbert@fz-juelich.de
Keywords: jupyter,xpra,jupyterhub,jupyter-server-proxy
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Framework :: Jupyter
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

![build](https://github.com/FZJ-JSC/jupyter-xprahtml5-proxy/workflows/build/badge.svg)

# jupyter-xprahtml5-proxy
Integrate Xpra in your Jupyter environment for an fast, feature-rich and easy to use remote desktop in the browser.

## Requirements
- Python 3.6+
- Jupyter Notebook 6.0+
- JupyterLab >= 3.x
- jupyter-server-proxy >= 3.1.0

This package executes the `xpra` command. This command assumes the `xpra` command is available in the environment's $PATH. You might need to adjust the file [launch_xpra.sh](jupyter-xprahtml5-proxy/share/launch_xpra.sh) to ensure this.

## Security
[Xpra](https://xpra.org/) supports password and encryption.  
Both are NOT required, if you can trust _everyone_, who can log in to the host where your JupyterLab is running.
(incl. [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy), [jupyter-xprahtml5-proxy](https://github.com/FZJ-JSC/jupyter-xprahtml5-proxy) and [Xpra-HTML5](https://xpra.org/))
  
**BUT (!!!)**  
if you are on a multiuser system, where you CANNOT trust everyone,  
you must(!) ensure that your Xpra session is secured by at least a password.

Currently this requires 
- that [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) includes this [pull request](https://github.com/jupyterhub/jupyter-server-proxy/pull/226) and 
- you use jupyter-xprahtml5-proxy with a version number >= 0.3.0 (not on pypi)

### Xpra
[Xpra](https://xpra.org/) is an open-source multi-platform persistent *remote display* solution for forwarding applications and desktop screens. It allows you to run X11 programs, usually on a remote host, and direct their display to your local machine.  
Best of it. It is fast, fast, fast and comes with a build-in html5 client to allow remote.

### Jupyter-Server-Proxy
[Jupyter-Server-Proxy](https://jupyter-server-proxy.readthedocs.io) lets you run arbitrary external processes (such as Xpra-HTML5) alongside your notebook, and provide authenticated web access to them.

## Install 

#### Create and Activate Environment
```
virtualenv -p python3 venv
source venv/bin/activate
```

#### Install jupyter-xprahtml5-proxy
```
pip install git+https://github.com/FZJ-JSC/jupyter-xprahtml5-proxy.git
```

#### Enable jupyter-xprahtml5-proxy Extensions
For Jupyter Classic, activate the jupyter-server-proxy extension:
```
jupyter serverextension enable --sys-prefix jupyter_server_proxy
```

For Jupyter Lab, install the @jupyterlab/server-proxy extension:
```
jupyter labextension install @jupyterlab/server-proxy
jupyter lab build
```

#### Start Jupyter Classic or Jupyter Lab
Click on the Xpra icon from the Jupyter Lab Launcher or the Xpra item from the New dropdown in Jupyter Classic.  
Connect to your database as instructed in the Quickstart section.

## Configuration
This package calls `xpra` with a bunch of settings. Please read the [Xpra manual](https://xpra.org/manual.html) if you want to now the details.  
You have to modify `setup_xprahtml5()` in `jupyter_xprahtml5_proxy/__init__.py` for change.

## Credits
- Xpra
- jupyter-server-proxy

## License
BSD 3-Clause
