ipygany icon indicating copy to clipboard operation
ipygany copied to clipboard

Sequence component widget

Open benbovy opened this issue 5 years ago • 2 comments

I'm thinking about a subclass of ipygany.Component, which would provide:

  • an attribute that holds a list of arrays (or a nd-array)
  • an integer attribute used to index that list (or slice the nd-array)

The value of the array attribute would be the array that correspond to the current index value in the list of arrays (or the current slice of the nd-array).

This would be very useful to create responsive and/or smoothly animated ipygany scenes, especially in conditions of low bandwidth. This way we could send the whole data at once before playing the animation. And then have no or very little (index value) server/client communication while playing the animation.

There's a similar suggestion in https://github.com/vidartf/ipydatawidgets/issues/8, but I'm not sure what would be the best place to implement this.

benbovy avatar Oct 09 '20 13:10 benbovy

I agree, I think it's a great idea

martinRenou avatar Oct 09 '20 13:10 martinRenou

We can implement this fully in ipygany, not changing GanyJS, it should actually not be too much work.

martinRenou avatar Oct 09 '20 13:10 martinRenou