Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequence component widget #74

Open
benbovy opened this issue Oct 9, 2020 · 2 comments
Open

Sequence component widget #74

benbovy opened this issue Oct 9, 2020 · 2 comments

Comments

@benbovy
Copy link

benbovy commented Oct 9, 2020

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 vidartf/ipydatawidgets#8, but I'm not sure what would be the best place to implement this.

@martinRenou
Copy link
Collaborator

I agree, I think it's a great idea

@martinRenou
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants