jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
951 stars 188 forks source link

multiple Rendnerings side by side #23

Closed oroszl closed 9 years ago

oroszl commented 9 years ago

Is it possible to put two Rendnerings side by side ? I guess this is a widget question and I need to immerse myself in to widgets a bit more. But are there any caveats ? (I guess this is one of the rookie ones..)

jasongrout commented 9 years ago

Try this...

from IPython.html.widgets import HBox
...pythreejs code...
r1 = Renderer(...)
r2 = Renderer(...)
display(HBox([r1, r2]))
oroszl commented 9 years ago

Yep this is exactly what i needed (shows how rookie I am with the notebook.. )! I am closing this.