Skip to content

Conversation

@vidartf
Copy link
Member

@vidartf vidartf commented Aug 15, 2017

Adds support for buffer attributes and geometries.

Point worth noting:

  • Adds a dependency on the newly create package ipydatawidgets, which is a helper package for arrays and widgets for sharing arrays between different widgets.
  • (Re-)introduces PlainBufferGeometry as a buffer geometry class that syncs its attributes to the python side.
  • Adds a custom factory function PlainBufferGeometry.from_ref that initializes a new PlainBufferGeometry as either a copy of another BufferGeometry, or as a conversion of a regular Geometry. This copy should then sync its attributes back to the kernel side.
  • To support from_ref, it introduces machinery for creating new widget models from the JS side.

See the updated example notebook(s) for behavior.

Based on #108.

vidartf added 30 commits July 12, 2017 14:50
Give it better visibility and add a docstring.
Further highlight that most three widgets are models only.
This allows access to vertices etc. generated by geometry creator classes.
The rendering calls were streamlined to avoid unneeded calls + fix cases where things were not called but should have.
Main point is to at least ensure animations are stopped and that we do as little work as possible (context is normally lost for resource reasons).
Most browsers have 8 or 16, so floor it to the lowest we think we are guaranteed to have.
@vidartf
Copy link
Member Author

vidartf commented Aug 15, 2017

Note that with this PR, the autogen branch should be at the same level (nearly?) as the current master in terms of functionality, and that after the currently open PRs to the autogen branch are dealt with, one can consider merging the autogen branch into master.

@vidartf
Copy link
Member Author

vidartf commented Aug 15, 2017

Emphasis: This PR adds the requirement that the ipydatawidgets frontend extension is installed as well.

@jasongrout
Copy link
Member

@vidartf - feel free to merge this in if you feel it's ready.

@honorabel
Copy link

Apologies for not being able to review as much these days. I'm so pumped you guys are really taking some huge steps with improving this lib! The idea that buffer data can be passed back and forth efficiently is huge and I can only imagine what kind of cool demos this might enable!

@vidartf
Copy link
Member Author

vidartf commented Aug 16, 2017

Just wanted to make sure you were comfortable adding a dependency on another extension.

@vidartf vidartf merged commit 6355466 into jupyter-widgets:auto-gen-wrappers Aug 16, 2017
@vidartf vidartf deleted the buffer_geom branch August 16, 2017 09:33
@jasongrout
Copy link
Member

Just wanted to make sure you were comfortable adding a dependency on another extension.

I'm not opposed to the idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants