Skip to content

Conversation

@almarklein
Copy link
Member

Closes #176

I'm going to leave this open until I've updated pygfx, so I can make sure that it works well for pygfx too.

jupyter_rfb3

@Korijn
Copy link
Collaborator

Korijn commented Aug 7, 2021

Can you tell me a little bit about how this works if someone has multiple cells with rendered scenes in each cell?

@almarklein
Copy link
Member Author

Can you tell me a little bit about how this works if someone has multiple cells with rendered scenes in each cell?

Good question. Each cell would probably create a new canvas with a new renderer. So the device would be shared (we should probably make that so), but each canvas comes with its own pipeline(s). I should make a notebook with multiple cells to get a better feel. Will do when we can use pygfx.

@almarklein
Copy link
Member Author

image

@almarklein
Copy link
Member Author

BTW: you may see in the screenshots that the colors are a bit off. This has been fixed too by using the appopriate texture format.

@almarklein almarklein merged commit 3526b3a into main Aug 9, 2021
@almarklein almarklein deleted the jupyter branch August 9, 2021 14:33
@Korijn
Copy link
Collaborator

Korijn commented Aug 9, 2021

What happens if you leave out the animation loop and just render once? Does that work?

@almarklein
Copy link
Member Author

Yes. Then a redraw is only requested when the canvas is resized (in the browser) like with normal windows.

@almarklein
Copy link
Member Author

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

Successfully merging this pull request may close these issues.

Jupyter widget based on jupyter_rfb

3 participants