-
Hi, I have developed an application using trame v1 mostly 1.19.4 but functional and untested in 1.20. I am looking into migrating to v2 due to the addition of matplotlib support and it already being present in the project for other applications, so it makes sense to use this instead of plotly from v1 right? My users are more likely to have used and seen matplotlib also. I have a few issues with the migration though, specifically, I have become dependent on a function that will update the client's view of the drawer layout as it changes based on the current context/state of the viewer and selected options, for example, I want to disable some of the UI elements if a specific VSwitch is set to False, as it turns off/hides the vtkActor they are relevant to in the VTK viewer. To achieve disabled objects I am at present in Trame v1 recreating the layout and "pushing" it to the client using update_layout, from the main trame module, i.e Thank you! I am hoping I just missed something obvious. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not sure if there is much change between v1 to v2 regarding plotly vs matplotlib. But pick the library that make sense to you regardless of trame version. I personally prefer plotly as it provide more capabilities in term of interactions (selection...). To dynamically update the layout with trame v2 you have two options.
HTH, Seb |
Beta Was this translation helpful? Give feedback.
I'm not sure if there is much change between v1 to v2 regarding plotly vs matplotlib. But pick the library that make sense to you regardless of trame version. I personally prefer plotly as it provide more capabilities in term of interactions (selection...).
To dynamically update the layout with trame v2 you have two options.
layout.flush_content()
HTH,
Seb