Skip to content

Commit

Permalink
docs(Selection): Add paraview remote rendering selection example
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Dec 9, 2022
1 parent 12879f2 commit f9f6f7b
Show file tree
Hide file tree
Showing 12 changed files with 166 additions and 0 deletions.
25 changes: 25 additions & 0 deletions examples/07_paraview/Picking/README.md
@@ -0,0 +1,25 @@
## Running example require ParaView 5.10+

Setup a local venv with `trame` installed

```python
python3.9 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install trame

export PV_VENV=$PWD/.venv
```

Assuming you are in the directory that contains the `pv_selection.py` file you should be able to execute the following command to start the example application:

```bash
# My local ParaView setup
export PVPYTHON=/Applications/ParaView-5.11.0.app/Contents/bin/pvpython

$PVPYTHON -m paraview.apps.trame --trame-app pv_selection
```

## Runtime error

You may have to patch the method listed on the Python exception by replacing the method content by just a `pass`. That method is supposed to extract all the build settings and fail to import a file that get deleted at install phase. For ParaView it is safe to skip that method content.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions examples/07_paraview/Picking/icons/pqSelectBlock.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f9f6f7b

Please sign in to comment.