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()