Skip to content

Trame 2 and pushing updates to clients #69

Answered by jourdain
Pasarus asked this question in Q&A
Discussion options

You must be logged in to vote

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.

  1. Using the layout context manager to automatically flush its content once done with changes...
with layout:
   with ...widget...:
      pass # do the change
  1. Calling layout.flush_content()

HTH,

Seb

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Pasarus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants