diff --git a/examples/06_vtk/Applications/SurfacePicking/app.py b/examples/06_vtk/Applications/SurfacePicking/app.py index b098b161..f7077194 100644 --- a/examples/06_vtk/Applications/SurfacePicking/app.py +++ b/examples/06_vtk/Applications/SurfacePicking/app.py @@ -46,7 +46,7 @@ data_directory = Path(__file__).parent.parent.parent.with_name("data") f1_vtp = data_directory / "f1.vtp" -print(f1_vtp) +# print(f1_vtp) reader = vtkXMLPolyDataReader() reader.SetFileName(f1_vtp) @@ -94,7 +94,7 @@ "selectData": None, "tooltip": "", "coneVisibility": False, - "pixel_ratio": 1, + "pixel_ratio": 2, # Meshes "f1Visible": True, } @@ -303,6 +303,17 @@ def update_tooltip(pickData, pixel_ratio, **kwargs): vtk_class="vtkConeSource", state=("cone", {}), ) +# ----------------------------------------------------------------------------- +# Jupyter +# ----------------------------------------------------------------------------- + + +def show(**kwargs): + from trame.app import jupyter + + jupyter.show(server, **kwargs) + + # ----------------------------------------------------------------------------- # CLI # -----------------------------------------------------------------------------