ParaView-Web RemoteRenderer in Jupyter
Project description
pvlink
ParaView-Web RemoteRenderer in Jupyter
Installation
You can install pvlink using pip
and jupyter labextension install
:
pip install pvlink
jupyter labextension install pvlink
If you are using Jupyter Notebook 5.2 or earlier, you may also need to enable the nbextension:
jupyter nbextension enable --py [--sys-prefix|--user|--system] pvlink
Usage
For examples see the example notebook.
The RemoteRenderer additionally requires the paraview.simple
and paraview.web modules
.
Jupyter Proxy Setup (using nginx)
To enable streaming these settings need to be set, in the nginx config file for Jupyter (for example: in /etc/nginx/conf.d/):
# top-level http config for websocket headers
# If Upgrade is defined, Connection = upgrade
# If Upgrade is empty, Connection = close
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
... location ... {
...
# websocket headers
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
...
}
An unused stream is automatically disconnected by nginx, after proxy_read_timeout
's seconds are exceeded. The default value of 60s is reached quite fast, therefore it is recommended to increase this value.
For example:
# HTTPS server to handle JupyterHub
server {
listen 443 ssl;
...
proxy_read_timeout 3600s;
...
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
Hashes for pvlink-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 443ac0747aad1b5837b0928b22ade7aa7ec62da3d3efbc88d0de87f6ba20f6aa |
|
MD5 | a465b0fba0da9e8294ca9d45301ff7a4 |
|
BLAKE2b-256 | 1c093c1b03582fa0f7e8379914019cad758cd41dbcaab426e53d6f95bb4d33c9 |