Open sanjayankur31 opened 1 month ago
CC: @lej0hn
This is supposed to work. For some reason the first canvas now takes the content of the second. Not sure whether this is related to jupyter_rfb or vispy. Will have to look into this.
Thanks @almarklein . Please do let me know if there's any more information I can provide. Also happy to help with any testing etc.
Hi folks,
I was trying to get multiple visualizations in the same notebook, for example as one would do with matplotlib where one has multiple plots.
Is this expected to work? In the simple examples that I have here, it seems like creating a new vispy canvas/visualization affects the previous one too.
I've taken one of the vispy examples and just split it into two different visualizations:
and
Until i run the third cell, the second cell works fine. Once I run the third cell, the second cell is also modified. Video attached:
https://github.com/user-attachments/assets/ade109e9-9c10-4b00-88c6-7e0d1291be72
I tried it with vispy outside of a jupyter notebook, and it does work. I get two windows with the expected outputs and they're independent of each other. Here's that script:
It's the same as the notebook, but uses
canvas.show()
and then has theapp.run()
call at the end.