Skip to main content

Remote Controlled Area pypi_download

Remote Controlled Area widget for trame provide components and communication infrastructure to display remote generated image based content while allowing interaction forwarding such as mouse, touch and multi-pointer devices.

This library aims to provide a core that can then be extended or specialized for any backend. But its initial integration will be focused toward VTK and/or ParaView for enabling interactive remote rendering. But because it aims to be generic, you should be able to rely on its core to connect and drive any kind of backend that could produce images/video-stream and react to mouse interaction.

License

trame-rca is made available under the Apache Software License.

Development

The client-side code is split into a framework-agnostic core (js-components) and Vue/React adapters that depend on it. Install and build the core first, then the adapter(s) you need.

cd js-components
npm i

cd ../vue-components
npm i
npm run build

# optional React adapter
cd ../react-components
npm i
npm run build

cd -

Install the component

uv sync --all-extras --dev

Optional dependencies

TurboJPEG

Faster Jpeg encoding using TurboJPEG.

macOS system install

# macOS
brew install jpeg-turbo

Windows install

Download and install from Github: https://github.com/libjpeg-turbo/libjpeg-turbo/releases

Linux install

# RHEL/CentOS/Fedora
# YUM doc: https://libjpeg-turbo.org/Downloads/YUM

# Ubuntu: its libturbojpeg package is 2.x (2.1.5 on 24.04), but PyTurboJPEG 2
# needs libjpeg-turbo >= 3.0, so install the official package from
# https://github.com/libjpeg-turbo/libjpeg-turbo/releases
sudo apt install ./libjpeg-turbo-official_<version>_<arch>.deb  # amd64 or arm64

Once your system is ready, you can try our code example:

pip install trame trame-vuetify vtk
pip install "trame-rca[turbo]"

# other encoders: jpeg, avif, turbo-jpeg, png, webp
python ./examples/01_vtk/vtk_cone_simple.py --encoder turbo-jpeg

Video encoding with VTKStreaming

VTKStreaming provides tools for encoding and streaming frames from a VTK OpenGL render window using video codecs. When NVENC is available, it enables H.264/H.265 hardware encoding; otherwise, software encoding falls back to VP9 via libvpx.

The codec is negotiated when the video-decoder display mounts: the client asks the server which codecs it can encode (trame.rca.video.codecs), filters them with VideoDecoder.isConfigSupported, and sends the accepted list back (trame.rca.video.negotiate). The server then creates the encoder with vtkEncoderFactory preferences Hardware=true;Codec=<accepted list>. No frames are pushed before negotiation. Pass on_video_codec to create_view_handler to be told what was selected (codec, backend, hardware, label or error).

You can try our code example:

pip install trame trame-vuetify vtk
pip install "trame-rca[vtkstreaming]"

python ./examples/05_video/vtk_cone_simple_video.py

In order to use source-build of vtkstreaming, please clone [VTKStreaming](https://github.com/Kitware/VTKStreaming.git) one level up outside the trame-rca directory, checkout the wheel branch, and install it inside the trame-rca virtual environment

cd ..
git clone https://github.com/Kitware/VTKStreaming.git
cd VTKstreaming
uv pip install --group dev          # build deps into active venv; index from tool.uv.index
uv pip install -e . --no-build-isolation
cd ../trame-rca

python ./examples/05_video/vtk_cone_simple_video.py

Shared textures with Electron

In an Electron app, VTK can render into a GPU texture that Electron shows as is: without encoding and without copying to the CPU. The Electron side is the @kitware/trame-rca-electron npm package in ./js-electron-lib: it starts the trame server and loads its page. Supported on macOS (IOSurface), Windows (D3D11 NT handles) and Linux under Wayland (dma-buf).

  • macOS: works out of the box (IOSurface).

  • Windows: the GL driver needs WGL_NV_DX_interop2, and VTK must render on the GPU Chromium uses. Set D3D_ADAPTER=<index> if that isn’t DXGI adapter 0.

  • Linux: Wayland only for now (dma-buf). Electron duplicates the server’s file descriptors with pidfd_getfd, which needs kernel.yama.ptrace_scope at 1 or less: sudo sysctl -w kernel.yama.ptrace_scope=1. Set RENDER_NODE=/dev/dri/renderD129 if VTK picks another GPU than the compositor.

  • Linux: if Electron fails to start with The SUID sandbox helper binary was found, but is not configured correctly, allow unprivileged user namespaces. On Ubuntu 24.04 and later: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0. On older distributions: sudo sysctl -w kernel.unprivileged_userns_clone=1.

# before creating any VTK render window,
# this setup environment to properly initialize
# VTK factories to work with Electron native textures.
import trame_rca.electron.vtk

from trame.widgets import rca

# ... create render_window, then in the UI:
view = rca.RemoteControlledArea(display="shared-texture")
view_handler = view.create_electron_handler(render_window)

You can try our code example:

uv venv
uv pip install trame trame-vuetify trame-rca vtk
source .venv/bin/activate

cd examples/06_electron_apps/electron
npm i
npm start

See js-electron-lib/README.md for the Electron API and what packaging an app needs.

Metadata

Release files for trame-rca 2.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trame-rca 2.12.0
File Size Uploaded Provenance Actions
trame_rca-2.12.0.tar.gz 87.0 kB With provenance Details for trame_rca-2.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for trame-rca 2.12.0
File Interpreter ABI Platform Actions
trame_rca-2.12.0-py3-none-any.whl Python 3 none any Details for trame_rca-2.12.0-py3-none-any.whl

Total release size: 189.1 kB

Release files / trame_rca-2.12.0.tar.gz

Download URL trame_rca-2.12.0.tar.gz
Size 87.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dfc1971532bd2276e4c7e06d74fa70292deadf1861079c244eecd203b714db41
BLAKE2b-256 checksum
How to use checksums
6d30dafb8865657d9d8bcd971490d21a0c635290fda5f4625773f944765a86f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / trame_rca-2.12.0-py3-none-any.whl

Download URL trame_rca-2.12.0-py3-none-any.whl
Size 102.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24af610913aa98a31cac5b72bba662b339a98241a0a218edbf6c8e955ff2fc47
BLAKE2b-256 checksum
How to use checksums
5cab091390fd34027dc30d0e53ac1c17cc7d2ca9bcb9a9f7d4c3c11ab50931a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for trame-rca 2.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for trame_rca-2.12.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.12.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page