pyvista widgets can only work in Jupyter "toggle rendering mode (remote)" not "toggle rendering mode (local)" #6028
-
First check
Commit to Help
Sample Code What is the problem, question, or error?Write a short description telling me what you are doing, what you expect to happen, and what is currently happening. import pyvista as pv
from pyvista import examples
mesh = examples.download_nefertiti()
p = pv.Plotter()
p.add_mesh_clip_box(mesh, color='white')
p.show(cpos=[-1, -1, 0.2], jupyter_backend="trame") DescriptionI am new using this wonderful project. below is my question. Why do pyvista widgets only work in Jupyter "toggle rendering mode (remote)" not "toggle rendering mode (local)". The reason why is that I found "toggle rendering mode (remote)" is less resolution (kind of blurred), but I can drag widgets to interact. when I change to "toggle rendering mode (local)", the resolution gets higher, but widgets cannot be dragged (what I can do is rotation). Is there any way to interact with widgets in "local" mode? Recording.mp4System Information--------------------------------------------------------------------------------
Date: Sat May 04 13:43:54 2024 CST
OS : Darwin
CPU(s) : 10
Machine : arm64
Architecture : 64bit
RAM : 16.0 GiB
Environment : Jupyter
File system : apfs
GPU Vendor : Apple
GPU Renderer : Apple M2 Pro
GPU Version : 4.1 Metal - 88
MathText Support : True
Python 3.10.0 | packaged by conda-forge | (default, Nov 20 2021, 02:27:15)
[Clang 11.1.0 ]
pyvista : 0.43.6
vtk : 9.3.0
numpy : 1.26.4
matplotlib : 3.8.4
scooby : 0.9.2
pooch : 1.8.1
pillow : 10.3.0
imageio : 2.34.1
IPython : 8.24.0
ipywidgets : 8.1.2
scipy : 1.13.0
jupyterlab : 4.1.8
trame : 3.6.0
trame_client : 3.0.2
trame_server : 3.0.0
trame_vtk : 2.8.7
trame_vuetify : 2.4.3
jupyter_server_proxy : 4.1.2
nest_asyncio : 1.6.0
-------------------------------------------------------------------------------- ScreenshotsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Widgets are not supported in local mode. Also the resolution can be increased when using remote rendering. I just don't know how to set it within PyVista. |
Beta Was this translation helpful? Give feedback.
Widgets are not supported in local mode. Also the resolution can be increased when using remote rendering. I just don't know how to set it within PyVista.