From 7e480b992e0aea49b648d717b984eed16d9615f0 Mon Sep 17 00:00:00 2001 From: Sebastien Jourdain Date: Fri, 5 Apr 2024 10:54:09 -0600 Subject: [PATCH] docs(picking): update pv picking readme and code --- examples/07_paraview/Picking/README.md | 2 +- examples/07_paraview/Picking/pv_selection.py | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/07_paraview/Picking/README.md b/examples/07_paraview/Picking/README.md index 60a291ce..5c47dbe6 100644 --- a/examples/07_paraview/Picking/README.md +++ b/examples/07_paraview/Picking/README.md @@ -6,7 +6,7 @@ Setup a local venv with `trame` installed python3.9 -m venv .venv source .venv/bin/activate pip install -U pip -pip install trame +pip install trame trame-vtk trame-vuetify export PV_VENV=$PWD/.venv ``` diff --git a/examples/07_paraview/Picking/pv_selection.py b/examples/07_paraview/Picking/pv_selection.py index fe9891c6..8a069513 100644 --- a/examples/07_paraview/Picking/pv_selection.py +++ b/examples/07_paraview/Picking/pv_selection.py @@ -137,5 +137,10 @@ def on_mode_change(selection_mode, **kwargs): ctrl.view_reset_camera = html_view.reset_camera ctrl.view_update = html_view.update -if __name__ == "__main__": + +def main(): server.start() + + +if __name__ == "__main__": + main()